This commit is contained in:
1 parent
f87d88db09
commit
d38015562a
5 files changed
+23
-14
No files matched your search
@@ -66,7 +66,10 @@ class MQTTManager:
|
||||
logger.info(f"[Received] {data}.")
|
||||
|
||||
for handler in self.handlers:
|
||||
await handler(client, userdata, msg)
|
||||
try:
|
||||
await handler(client, userdata, msg)
|
||||
except Exception as e:
|
||||
logger.error(f'Got exception: {e}')
|
||||
|
||||
asyncio.run_coroutine_threadsafe(handle_message(), self.loop)
|
||||
|
||||
|
||||
Reference in new issue
Block a user