lynxis lazus has uploaded this change for review. (
https://gerrit.osmocom.org/c/pysim/+/43196?usp=email )
Change subject: pySim-trace: ignore all other exception and retry parsing it
......................................................................
pySim-trace: ignore all other exception and retry parsing it
Change-Id: I53a5e7e7087073f242eab1d86ef8a9ec929193bd
---
M pySim-trace.py
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/96/43196/1
diff --git a/pySim-trace.py b/pySim-trace.py
index 083fc81..a1a5bb1 100755
--- a/pySim-trace.py
+++ b/pySim-trace.py
@@ -120,6 +120,9 @@
except (StopIteration, KeyboardInterrupt):
print("%i APDUs parsed, stop iteration." % apdu_counter)
return 0
+ except Exception as exp:
+ print(f"Failed to parse APDU {exp}")
+ continue
if isinstance(apdu, CardReset):
self.rs.reset()
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/43196?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I53a5e7e7087073f242eab1d86ef8a9ec929193bd
Gerrit-Change-Number: 43196
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>