diff --git a/judge/caching.py b/judge/caching.py index b8fb810..b8fec83 100644 --- a/judge/caching.py +++ b/judge/caching.py @@ -43,7 +43,10 @@ def cache_wrapper(prefix, timeout=None): result = func(*args, **kwargs) if result is None: result = NONE_RESULT - cache.set(cache_key, result, timeout) + try: + cache.set(cache_key, result, timeout) + except: + pass return result def dirty(*args, **kwargs):