[entropy.db] fix getNewNegativeSpmUid() when query returns None
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user