We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2076a2 commit fc031e8Copy full SHA for fc031e8
tests/helpers/proxy_server.py
@@ -1,3 +1,4 @@
1
+import contextlib
2
import logging
3
import time
4
@@ -26,7 +27,8 @@ def connect(self):
26
27
def close(self):
28
if self.upstream_connection:
29
self.upstream_connection.close()
- self.server.shutdown()
30
+ with contextlib.suppress(AttributeError):
31
+ self.server.shutdown()
32
33
def proxy_request(self, websocket: ServerConnection):
34
for message in websocket:
0 commit comments