Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions resources/tydomd/tydomd.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import signal
import socket
import sys
import websockets

from jeedom.jeedom import *
from tydom.TydomClient import TydomClient
Expand Down Expand Up @@ -64,6 +65,9 @@ async def listen_tydom():
jeedom_com=jeedom_com
)
await message_handler.incoming_triage()
except websockets.exceptions.ConnectionClosedError as e:
logging.error("Connection closed error: %s", e)
sys.exit(1)
except Exception as e:
logging.warning("Unable to handle message: %s", e)
except socket.gaierror as e:
Expand Down