mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 02:43:54 +01:00
Fallback to /state/ on both 400 and 404
This commit is contained in:
parent
a2b7102eea
commit
1515d1b581
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ class FederationClient(FederationBase):
|
||||||
|
|
||||||
defer.returnValue((pdus, auth_chain))
|
defer.returnValue((pdus, auth_chain))
|
||||||
except HttpResponseException as e:
|
except HttpResponseException as e:
|
||||||
if e.code == 400:
|
if e.code == 400 or e.code == 404:
|
||||||
logger.info("Failed to use get_room_state_ids API, falling back")
|
logger.info("Failed to use get_room_state_ids API, falling back")
|
||||||
else:
|
else:
|
||||||
raise e
|
raise e
|
||||||
|
|
Loading…
Reference in a new issue