mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
catch connectionclosederror
This commit is contained in:
parent
cf05f374cf
commit
b8e1d29a1b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user