diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-10-27 12:37:12 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-10-27 12:37:48 +0100 |
commit | 52ac6571d423ebcbbfa3b089fdb893ae16db35e2 (patch) | |
tree | b335bdeaf52f0fd3bafc3b5f7eb0b0c1874dae5a | |
parent | Merge branch 'develop' into matrix-org-hotfixes (diff) | |
download | synapse-52ac6571d423ebcbbfa3b089fdb893ae16db35e2.tar.xz |
PEP8
fix except clause and indentation
-rw-r--r-- | synapse/federation/transaction_queue.py | 4 | ||||
-rw-r--r-- | synapse/replication/slave/storage/client_ips.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py index ec8ca08854..17f27e32cc 100644 --- a/synapse/federation/transaction_queue.py +++ b/synapse/federation/transaction_queue.py @@ -188,7 +188,7 @@ class TransactionQueue(object): prev_id for prev_id, _ in event.prev_events ], ) - except: + except Exception: logger.exception("Failed to calculate hosts in room") continue @@ -249,7 +249,7 @@ class TransactionQueue(object): Args: states (list(UserPresenceState)) """ - return + return # First we queue up the new presence by user ID, so multiple presence # updates in quick successtion are correctly handled diff --git a/synapse/replication/slave/storage/client_ips.py b/synapse/replication/slave/storage/client_ips.py index 4796eb166b..fedf7a3188 100644 --- a/synapse/replication/slave/storage/client_ips.py +++ b/synapse/replication/slave/storage/client_ips.py @@ -42,7 +42,7 @@ class SlavedClientIpStore(BaseSlavedStore): if last_seen is not None and (now - last_seen) < LAST_SEEN_GRANULARITY: return - self.client_ip_last_seen.prefill(key, now) + self.client_ip_last_seen.prefill(key, now) self.hs.get_tcp_replication().send_user_ip( user_id, access_token, ip, user_agent, device_id, now |