catch connectionclosederror
This commit is contained in:
@@ -220,8 +220,11 @@ class ExternalMessageConsumer:
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
except websockets.exceptions.ConnectionClosedOK:
|
except (
|
||||||
# Successfully closed, just keep trying to connect again indefinitely
|
websockets.exceptions.ConnectionClosedError,
|
||||||
|
websockets.exceptions.ConnectionClosedOk
|
||||||
|
):
|
||||||
|
# Just keep trying to connect again indefinitely
|
||||||
continue
|
continue
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Reference in New Issue
Block a user