Don't try to commit if no db connection
This commit is contained in:
parent
39352eb97e
commit
96e7fbdca1
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ class Db(object):
|
|||
self.log.debug("Commit ignored: Progress sleeping")
|
||||
return False
|
||||
|
||||
if not self.conn:
|
||||
self.log.debug("Commit ignored: No connection")
|
||||
return False
|
||||
|
||||
try:
|
||||
s = time.time()
|
||||
self.conn.commit()
|
||||
|
|
Loading…
Reference in a new issue