summary refs log tree commit diff
path: root/synapse/handlers/groups_local.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-07 10:29:35 +0100
committerErik Johnston <erik@matrix.org>2019-06-07 10:29:35 +0100
commita46ef1e3a4eea55919d86da322628a0713e6ba2d (patch)
tree0952b8cc69557ad826b4320b2e8f9af39aa80695 /synapse/handlers/groups_local.py
parentAutomatically retry builds when a buildkite agent is lost (#5380) (diff)
downloadsynapse-a46ef1e3a4eea55919d86da322628a0713e6ba2d.tar.xz
Handle HttpResponseException when using federation client.
Otherwise we just log exceptions everywhere.
Diffstat (limited to 'synapse/handlers/groups_local.py')
-rw-r--r--synapse/handlers/groups_local.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/handlers/groups_local.py b/synapse/handlers/groups_local.py
index 02c508acec..f60ace02e8 100644
--- a/synapse/handlers/groups_local.py
+++ b/synapse/handlers/groups_local.py
@@ -49,9 +49,7 @@ def _create_rerouter(func_name):
             def http_response_errback(failure):
                 failure.trap(HttpResponseException)
                 e = failure.value
-                if e.code == 403:
-                    raise e.to_synapse_error()
-                return failure
+                raise e.to_synapse_error()
 
             def request_failed_errback(failure):
                 failure.trap(RequestSendFailed)