mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
implement close method, and return error condition
This commit is contained in:
@@ -64,4 +64,8 @@ class Storage:
|
||||
|
||||
def commit(self):
|
||||
try: self.db.commit(); return True
|
||||
except Exception as e: return False
|
||||
except Exception as e: return e
|
||||
|
||||
def close(self):
|
||||
self.db.close()
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user