Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1From 94ea94de526770e783d04d75b981dfa3ac90fd20 Mon Sep 17 00:00:00 2001 2From: o7-machienhum <ryan.cjw@gmail.com> 3Date: Tue, 30 Jan 2024 03:29:09 -0800 4Subject: [PATCH] Fixes crash 5 6--- 7 mnamer/utils.py | 3 --- 8 1 file changed, 3 deletions(-) 9 10diff --git a/mnamer/utils.py b/mnamer/utils.py 11index 84df7870..8eba68f8 100644 12--- a/mnamer/utils.py 13+++ b/mnamer/utils.py 14@@ -256,7 +256,6 @@ def request_json( 15 "like Gecko) Chrome/79.0.3945.88 Safari/537.36" 16 ) 17 18- initial_cache_state = session._disabled # yes, i'm a bad person 19 try: 20 session._disabled = not cache 21 response = session.request( 22@@ -272,8 +271,6 @@ def request_json( 23 except: 24 content = None 25 status = 500 26- finally: 27- session._disabled = initial_cache_state 28 return status, (content or {})