Skip to content

Commit

Permalink
close method catches all exceptions (not only TypeError) if conn is b…
Browse files Browse the repository at this point in the history
…roken
  • Loading branch information
janrygl committed Apr 26, 2016
1 parent 2400ff7 commit 5363273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlitedict.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def close(self, do_log=True):
# all data is persisted to disk before returning.
self.conn.commit(blocking=True)
self.conn.close()
except TypeError:
except Exception:
pass
self.conn = None
if self.in_temp:
Expand Down

0 comments on commit 5363273

Please sign in to comment.