Skip to content

Commit d569015

Browse files
committed
log smsStatusReportCallback errors in _handleSmsStatusReportTe too
1 parent 72b088d commit d569015

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gsmmodem/modem.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,10 @@ def _handleSmsStatusReportTe(self, length, notificationLine):
13991399
self._smsStatusReportEvent.set()
14001400
else:
14011401
# Nothing is waiting for this report directly - use callback
1402-
self.smsStatusReportCallback(report)
1402+
try:
1403+
self.smsStatusReportCallback(report)
1404+
except Exception:
1405+
self.log.error('error in smsStatusReportCallback', exc_info=True)
14031406

14041407
def readStoredSms(self, index, memory=None):
14051408
""" Reads and returns the SMS message at the specified index

0 commit comments

Comments
 (0)