mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-21 19:18:19 +00:00
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.
This commit is contained in:
1 parent
e0b9d5f0af
commit
ef771cc4c2
12 files changed
+21
-20
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user