modem_atcmd: raise ProtocolError instead of ReaderError on CME ERROR

Also accept ProtocolError in addition to SwMatchError in filesystem.py
when probing for applications

Change-Id: I82b50408328f8eaaee5c9e311c4620d20f930642
This commit is contained in:
Tobias Engel
2023-05-29 21:20:59 +02:00
committed by laforge
parent bca01523df
commit d70ac22618
2 changed files with 3 additions and 2 deletions

View File

@@ -1352,7 +1352,7 @@ class RuntimeState:
if sw == "9000":
print(" %s: %s" % (f.name, f.aid))
apps_taken.append(f)
except SwMatchError:
except (SwMatchError, ProtocolError):
pass
return apps_taken