Skip to content

Commit 3fa3b2b

Browse files
author
brentru
committed
raise if not supported
1 parent 8dcf5fd commit 3fa3b2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_fona/adafruit_fona.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def num_sms(self, sim_storage=True):
502502
503503
"""
504504
if not self._send_check_reply(b"AT+CMGF=1", reply=REPLY_OK):
505-
return None
505+
raise RuntimeError("Operating mode not supported by FONA module.")
506506

507507
if sim_storage: # ask how many SMS are stored
508508
if self._send_parse_reply(b"AT+CPMS?", FONA_SMS_STORAGE_SIM + b",", idx=1):

0 commit comments

Comments
 (0)