Make pylint ignore bare-except in this particular case, just like we do with flake8 (#16714)

This commit is contained in:
Amine Khaldi 2023-10-27 22:29:47 +01:00 committed by GitHub
parent fc0eda6178
commit c2fbd6ecf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,7 +372,7 @@ class WebSocketServer:
show_traceback=False,
):
await connection.ping()
except: # noqa E722
except: # noqa E722 pylint: disable=bare-except
self.remove_connection(connection)
await connection.close()