recover from failed JSON parse attempt
This commit is contained in:
parent
1547d3f1b5
commit
ab6c8b78d7
1 changed files with 2 additions and 0 deletions
|
@ -249,10 +249,12 @@ class InviteChecker:
|
|||
|
||||
# Update cache if expired
|
||||
if current_time - self.cache_timestamp > self.cache_expiry_time:
|
||||
self.allow_all_invites_on_error = False
|
||||
yield self.update_blocklist_allowlist()
|
||||
|
||||
if self.allow_all_invites_on_error:
|
||||
logger.info("Skipping allowlist/blocklist checks because of previous JSON fetch failure.")
|
||||
self.allow_all_invites_on_error = False
|
||||
returnValue((set(), set(), set()))
|
||||
|
||||
# Return cached blocklist, allowlist, and blocklist room IDs
|
||||
|
|
Loading…
Reference in a new issue