implement close method, and return error condition

This commit is contained in:
Mike
2019-10-25 21:46:55 -04:00
parent bba73ea1a7
commit 11d89d56d4

View File

@@ -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