summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-05 10:24:23 +0100
committerErik Johnston <erik@matrix.org>2016-08-05 10:24:23 +0100
commit1515d1b581158e98c6513cf8b3b9548787854a64 (patch)
treeff8d06fea7be243caba9bad533125217d80c6972 /synapse/federation
parentTweak integrity error recovery to work as intended (diff)
downloadsynapse-1515d1b581158e98c6513cf8b3b9548787854a64.tar.xz
Fallback to /state/ on both 400 and 404
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/federation_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index c5e99cebf7..7e1690b0fb 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -343,7 +343,7 @@ class FederationClient(FederationBase):
 
             defer.returnValue((pdus, auth_chain))
         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")
             else:
                 raise e