From b9d55a17df5cc1dfab68dee93c053a40a08fee9f Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 13 Aug 2009 13:11:29 +0200 Subject: [PATCH] [entropy.db] fix getNewNegativeSpmUid() when query returns None --- libraries/entropy/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entropy/db.py b/libraries/entropy/db.py index e63cf85f6..4c08098cc 100644 --- a/libraries/entropy/db.py +++ b/libraries/entropy/db.py @@ -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