[XS] Change in pysim[master]: pySim-trace: treat CTRL-C / KeyboardInterrupt as normal abort
laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/43195?usp=email ) Change subject: pySim-trace: treat CTRL-C / KeyboardInterrupt as normal abort ...................................................................... pySim-trace: treat CTRL-C / KeyboardInterrupt as normal abort Change-Id: Ic75e8454bea4d59d6d7c41f8d9d699dcad56514e --- M pySim-trace.py 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/pySim-trace.py b/pySim-trace.py index 0aa1e9c..083fc81 100755 --- a/pySim-trace.py +++ b/pySim-trace.py @@ -117,7 +117,7 @@ try: apdu = self.source.read() apdu_counter = apdu_counter + 1 - except StopIteration: + except (StopIteration, KeyboardInterrupt): print("%i APDUs parsed, stop iteration." % apdu_counter) return 0 -- To view, visit https://gerrit.osmocom.org/c/pysim/+/43195?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: Ic75e8454bea4d59d6d7c41f8d9d699dcad56514e Gerrit-Change-Number: 43195 Gerrit-PatchSet: 2 Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge@osmocom.org>
participants (1)
-
laforge