catch connectionclosederror

This commit is contained in:
Timothy Pogue 2022-09-23 12:36:05 -06:00
parent cf05f374cf
commit b8e1d29a1b

View File

@ -220,8 +220,11 @@ class ExternalMessageConsumer:
continue
except websockets.exceptions.ConnectionClosedOK:
# Successfully closed, just keep trying to connect again indefinitely
except (
websockets.exceptions.ConnectionClosedError,
websockets.exceptions.ConnectionClosedOk
):
# Just keep trying to connect again indefinitely
continue
except Exception as e: