Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
raise when error
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Sep 2, 2020
1 parent 0d454f7 commit d45f52a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Utils/WebSockClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def send_snoomoji(self, snoomoji, channel_url):

def on_error(self, ws, error):
self.logger.error(error)
raise Exception("WEBSOCKET ERROR")

def on_close(self, ws):
self.logger.warning("### websocket closed ###")
Expand Down

0 comments on commit d45f52a

Please sign in to comment.