[twitter] handle API rate limits (#526)

This commit is contained in:
Mike Fährmann
2020-01-04 23:46:29 +01:00
parent 569747a78d
commit 43ab9572b4
2 changed files with 29 additions and 10 deletions

View File

@@ -37,7 +37,7 @@ class CacheDecorator():
def update(self, key, value):
self.cache[key] = value
def invalidate(self, key):
def invalidate(self, key=""):
try:
del self.cache[key]
except KeyError: