lynxis has submitted this change. ( 
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(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  dexter: Looks good to me, approved
  Jenkins Builder: Verified




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: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I53a5e7e7087073f242eab1d86ef8a9ec929193bd
Gerrit-Change-Number: 43196
Gerrit-PatchSet: 2
Gerrit-Owner: lynxis <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis <[email protected]>

Reply via email to