summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-11-11 16:56:55 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-11 16:56:55 +0000
commit94cdd6fffed90cceaf0396a66174ddd5c990c8eb (patch)
treeaad942cfcf36c9673ee54ac1792fdd45808780d2 /synapse
parentChangelog (diff)
downloadsynapse-94cdd6fffed90cceaf0396a66174ddd5c990c8eb.tar.xz
Lint
Diffstat (limited to 'synapse')
-rw-r--r--synapse/federation/federation_client.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 289017b2ed..23c08104b3 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -751,7 +751,7 @@ class FederationClient(FederationBase):
                 # If we receive an error response that isn't a generic error, or an
                 # unrecognised endpoint error, we  assume that the remote understands
                 # the v2 invite API and this is a legitimate error.
-                if not err.errcode in [Codes.UNKNOWN, Codes.UNRECOGNIZED]:
+                if err.errcode not in [Codes.UNKNOWN, Codes.UNRECOGNIZED]:
                     raise err
             else:
                 raise e.to_synapse_error()
@@ -878,7 +878,6 @@ class FederationClient(FederationBase):
 
         @defer.inlineCallbacks
         def send_request(destination):
-            time_now = self._clock.time_msec()
             content = yield self._do_send_leave(destination, pdu)
 
             logger.debug("Got content: %s", content)
@@ -906,7 +905,7 @@ class FederationClient(FederationBase):
                 # If we receive an error response that isn't a generic error, or an
                 # unrecognised endpoint error, we  assume that the remote understands
                 # the v2 invite API and this is a legitimate error.
-                if not err.errcode in [Codes.UNKNOWN, Codes.UNRECOGNIZED]:
+                if err.errcode not in [Codes.UNKNOWN, Codes.UNRECOGNIZED]:
                     raise err
             else:
                 raise e.to_synapse_error()