diff --git a/resources/proxy/antizapret.py b/resources/proxy/antizapret.py index 127949f..3daf5ca 100644 --- a/resources/proxy/antizapret.py +++ b/resources/proxy/antizapret.py @@ -21,7 +21,7 @@ def shelf(filename, ttl=0): with LOCKS.get(filename, threading.RLock()): with closing(shelve.open(filename, writeback=True)) as d: import time - if not d: + if not dict(d): d.update({ "created_at": time.time(), "data": {},