[entropy.db] fix getNewNegativeSpmUid() when query returns None

This commit is contained in:
Fabio Erculiani
2009-08-13 13:11:29 +02:00
parent 0cea79d0c2
commit b9d55a17df
+1 -1
View File
@@ -3043,7 +3043,7 @@ class EntropyRepository:
if dbcounter:
mycounter = dbcounter[0]
if mycounter >= -1:
if mycounter >= -1 or mycounter is None:
counter = -2
else:
counter = mycounter-1