Permalink
Browse files

None guards

  • Loading branch information...
1 parent d77f673 commit accec61ba21baf885a8d99525ec41dc545142cba @twinther committed Mar 6, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 source.py
View
@@ -108,6 +108,7 @@ def __init__(self):
self.updateInProgress = False
self.updateFailed = False
self.sourceNotConfigured = False
+ self.settingsChanged = None
#buggalo.addExtraData('source', self.source.KEY)
#for key in SETTINGS_TO_CHECK:
@@ -220,7 +221,8 @@ def close(self, callback):
def _close(self):
try:
# rollback any non-commit'ed changes to avoid database lock
- self.conn.rollback()
+ if self.conn:
+ self.conn.rollback()
except sqlite3.OperationalError:
pass # no transaction is active
self.conn.close()

0 comments on commit accec61

Please sign in to comment.