lynxis lazus has uploaded this change for review.
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 change 43196. To unsubscribe, or for help writing mail filters, visit settings.