mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
Catch exception if unable to cache the response
This commit is contained in:
parent
b283015d38
commit
c5cfede638
@ -58,7 +58,11 @@ class CacheControlAdapter(HTTPAdapter):
|
||||
response = cached_response
|
||||
else:
|
||||
# try to cache the response
|
||||
try:
|
||||
self.controller.cache_response(request, response)
|
||||
except Exception as e:
|
||||
# Failed to cache the results
|
||||
pass
|
||||
|
||||
resp = super(CacheControlAdapter, self).build_response(
|
||||
request, response
|
||||
|
Loading…
Reference in New Issue
Block a user