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
11 changes: 9 additions & 2 deletions gsmmodem/modem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,15 @@ def _handleSmsStatusReport(self, notificationLine):
if cdsiMatch:
msgMemory = cdsiMatch.group(1)
msgIndex = cdsiMatch.group(2)
report = self.readStoredSms(msgIndex, msgMemory)
self.deleteStoredSms(msgIndex)
try:
report = self.readStoredSms(msgIndex, msgMemory)
except:
#This handles an intermittent issue where the modem responds with a non-response like object.
self.log.error('Error during processing of SMS Status Report')
finally:
#It's probably best to delete the stored response since we couldn't process it effectively.
self.deleteStoredSms(msgIndex)
return
# Update sent SMS status if possible
if report.reference in self.sentSms:
self.sentSms[report.reference].report = report
Expand Down