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

Commit

Permalink
Fix for miscale worker
Browse files Browse the repository at this point in the history
  • Loading branch information
zewelor committed Sep 8, 2019
1 parent 1ed7910 commit bb794cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import sys

from exceptions import WorkerTimeoutError
from exceptions import WorkerTimeoutError, DeviceTimeoutError

if sys.version_info < (3, 5):
print("To use this script you need python 3.5 or newer! got %s" % sys.version_info)
Expand Down Expand Up @@ -73,7 +73,7 @@
mqtt.publish(_WORKERS_QUEUE.get(timeout=10).execute())
except queue.Empty: # Allow for SIGINT processing
pass
except WorkerTimeoutError as e:
except (WorkerTimeoutError, DeviceTimeoutError) as e:
logger.log_exception(
_LOGGER,
str(e) if str(e) else "Timeout while executing worker command",
Expand Down

0 comments on commit bb794cd

Please sign in to comment.