From 9940d9cc4c509668fedca42c0a4767fee7bb1e19 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 10 Oct 2023 19:54:55 -0500 Subject: [PATCH] Add a temp fix --- judge/caching.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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):