aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2011-11-11 15:44:32 (GMT)
committerChristian Ruppert <idl0r@gentoo.org>2011-11-11 15:44:32 (GMT)
commit2fe27226d9cb174d980ba7a2c8e0a5076fbc5412 (patch)
tree1c298ec8094598528294e295c5de7280094402b9
parentFix typo. (diff)
downloadpackages-2fe27226d9cb174d980ba7a2c8e0a5076fbc5412.zip
packages-2fe27226d9cb174d980ba7a2c8e0a5076fbc5412.tar.gz
packages-2fe27226d9cb174d980ba7a2c8e0a5076fbc5412.tar.bz2
Fix <herd> interpretation to not cause errors
-rw-r--r--web/model.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/model.py b/web/model.py
index 8f549fc..68ce012 100644
--- a/web/model.py
+++ b/web/model.py
@@ -623,6 +623,8 @@ class PackageDB(object):
cursor.execute(sql, (cat, pn))
row = cursor.fetchone()
+ if not row:
+ return
ebuildchangeutc = datetime.datetime.utcfromtimestamp(row[0])
package_details = { 'atom': get_atom(str(cp)),