From 5741866c07fd960212f6017543c7b7ea1a49f550 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Tue, 10 Oct 2023 20:23:52 -0500 Subject: [PATCH] Remove try except --- judge/caching.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/judge/caching.py b/judge/caching.py index b8fec83..b8fb810 100644 --- a/judge/caching.py +++ b/judge/caching.py @@ -43,10 +43,7 @@ def cache_wrapper(prefix, timeout=None): result = func(*args, **kwargs) if result is None: result = NONE_RESULT - try: - cache.set(cache_key, result, timeout) - except: - pass + cache.set(cache_key, result, timeout) return result def dirty(*args, **kwargs):