Skip to content

Commit 9311fb9

Browse files
committed
fix message parsing
1 parent a0b6e5d commit 9311fb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lowerlayer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ def handleNotification(self, handle, data):
183183
if not message_type in MESSAGES:
184184
self._error("Can not find Message")
185185
return
186-
message_cls = MESSAGE[message_type]
186+
message_cls = MESSAGES[message_type]
187187
message = message_cls.decode(message)
188188
LOG.info("Received decoded message %s", message)
189189
if self._recv_cb:
190190
self._recv_cb(message)
191-
except:
192-
LOG.info("Receive exception")
191+
except Exception as exp:
192+
LOG.info("Receive exception %s", exp)
193193
if self.ignore_invalid:
194194
return
195195

0 commit comments

Comments
 (0)