summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-08-10 13:39:12 +0100
committerErik Johnston <erik@matrix.org>2016-08-10 13:39:12 +0100
commit487bc49bf8dcaadd6abd9cee1ef762f1bf0d35a7 (patch)
treecefdbe42b4e57da70826e1c21c99199696c93aac /synapse/federation
parentAlso check if server is in the room (diff)
downloadsynapse-487bc49bf8dcaadd6abd9cee1ef762f1bf0d35a7.tar.xz
Don't stop on 4xx series errors
Diffstat (limited to '')
-rw-r--r--synapse/federation/federation_client.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 56115a87d7..9ba3151713 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -300,23 +300,13 @@ class FederationClient(FederationBase):
 
                         break
 
-            except SynapseError as e:
-                logger.info(
-                    "Failed to get PDU %s from %s because %s",
-                    event_id, destination, e,
-                )
-                continue
-            except CodeMessageException as e:
-                if 400 <= e.code < 500 and e.code != 404:
-                    raise
-
                 pdu_attempts[destination] = now
 
+            except SynapseError as e:
                 logger.info(
                     "Failed to get PDU %s from %s because %s",
                     event_id, destination, e,
                 )
-                continue
             except NotRetryingDestination as e:
                 logger.info(e.message)
                 continue