[csw-devel] SF.net SVN: gar:[12054] csw/mgar/gar/v2/lib/python/pkgdb.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Tue Dec 21 00:36:21 CET 2010
Revision: 12054
http://gar.svn.sourceforge.net/gar/?rev=12054&view=rev
Author: wahwah
Date: 2010-12-20 23:36:21 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
pkgdb: Log package identification when not found
There was an exception thrown in the web zone:
sqlobject.main.SQLObjectNotFound: No results matched the query for
Srv4FileStats
Adding a bit of logging to better identify the problem.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/pkgdb.py
Modified: csw/mgar/gar/v2/lib/python/pkgdb.py
===================================================================
--- csw/mgar/gar/v2/lib/python/pkgdb.py 2010-12-20 22:37:31 UTC (rev 12053)
+++ csw/mgar/gar/v2/lib/python/pkgdb.py 2010-12-20 23:36:21 UTC (rev 12054)
@@ -146,6 +146,10 @@
for row in res:
print "- %s %s %s" % (row.md5_sum, row.version_string, row.mtime)
raise
+ except sqlobject.main.SQLObjectNotFound, e:
+ logging.fatal("Could not locate a package identified by %s",
+ repr(some_id))
+ raise
logging.debug("Got: %s", srv4)
return srv4
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list