1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +12:00

Corrected instance checking on content

This commit is contained in:
phxntxm 2016-09-01 00:32:15 -05:00
parent a61d1e7b21
commit 0fe1868b4e

View file

@ -124,7 +124,7 @@ async def save_content(table: str, content):
# Now that we've saved the new content, we should update our cache
cached = cache.get(table)
# While this should theoretically never happen, we just want to make sure
if cached is None or isinstance(cached, {}) or len(cached.values) == 0:
if cached is None or isinstance(cached, dict) or len(cached.values) == 0:
cache[table] = Cache(table)
else:
await cached.update()