Compare commits
2 Commits
0.2.59
...
fix/cache-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8d34863c1 | ||
|
|
94eac4308b |
@@ -153,6 +153,18 @@ class _TzCache:
|
||||
db.create_tables([_KV])
|
||||
else:
|
||||
raise
|
||||
|
||||
# # Verify that the database file actually exists.
|
||||
# # Maybe peewee silently failed to create file and
|
||||
# # fellback to in-memory database:
|
||||
# if not _os.path.exists(db.database):
|
||||
# self.initialised = 0 # failure
|
||||
# return
|
||||
# Verify that the table was actually created
|
||||
if not db.table_exists('_kv'):
|
||||
self.initialised = 0 # failure
|
||||
return
|
||||
|
||||
self.initialised = 1 # success
|
||||
|
||||
def lookup(self, key):
|
||||
|
||||
Reference in New Issue
Block a user