Skip to content
Snippets Groups Projects
Commit e2b5a27f authored by Carsten Hinz's avatar Carsten Hinz
Browse files

changed layout of backup cache as the endpoint should be more unique

parent d434fa30
No related branches found
No related tags found
1 merge request!11Creation of first beta release version
......@@ -217,9 +217,10 @@ class Connection:
print("Status Code: {e.response.status_code}")
print("Reason: {e.response.reason}")
print("Text: {e.response.text}")
#use inverse order for saving. the status endpoint should be more unique
self.cache_backup.put(status_endpoint, query_options.cache_key)
#will be overwritten in the next step...
self.cache_backup.put(query_options.cache_key, status_endpoint)
self.cache.remove(query_options.cache_key)
#self.cache.remove(query_options.cache_key)
except:
raise RuntimeError(f"An error occurred during accessing a cached request")
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment