Skip to content
Snippets Groups Projects
Commit a09e59a6 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Pull the _get_event_cache.setdefault() call out of the try block, as it...

Pull the _get_event_cache.setdefault() call out of the try block, as it doesn't need to be there and is confusing
parent 044d813e
Branches
Tags
No related merge requests found
......@@ -636,8 +636,9 @@ class SQLBaseStore(object):
start_time = time.time() * 1000
update_counter = self._get_event_counters.update
cache = self._get_event_cache.setdefault(event_id, {})
try:
cache = self._get_event_cache.setdefault(event_id, {})
# Separate cache entries for each way to invoke _get_event_txn
return cache[(check_redacted, get_prev_content, allow_rejected)]
except KeyError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment