summary refs log tree commit diff
path: root/scripts-dev/tail-synapse.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-10-24 10:35:01 +0100
committerRichard van der Hoff <richard@matrix.org>2018-10-24 10:39:03 +0100
commitef771cc4c2d988e5188ba7e75df9adebb0ebafe1 (patch)
treeebab02095acf97b5a4d4a03c4570acc6baaa1323 /scripts-dev/tail-synapse.py
parentMerge pull request #4075 from matrix-org/rav/fix_pusher_logcontexts (diff)
downloadsynapse-ef771cc4c2d988e5188ba7e75df9adebb0ebafe1.tar.xz
Fix a number of flake8 errors
Broadly three things here:

* disable W504 which seems a bit whacko
* remove a bunch of `as e` expressions from exception handlers that don't use
  them
* use `r""` for strings which include backslashes

Also, we don't use pep8 any more, so we can get rid of the duplicate config
there.
Diffstat (limited to 'scripts-dev/tail-synapse.py')
-rw-r--r--scripts-dev/tail-synapse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts-dev/tail-synapse.py b/scripts-dev/tail-synapse.py
index 1a36b94038..7c9985d9f0 100644
--- a/scripts-dev/tail-synapse.py
+++ b/scripts-dev/tail-synapse.py
@@ -48,7 +48,7 @@ def main():
                 row.name: row.position
                 for row in replicate(server, {"streams": "-1"})["streams"].rows
             }
-        except requests.exceptions.ConnectionError as e:
+        except requests.exceptions.ConnectionError:
             time.sleep(0.1)
 
     while True: