lynxis lazus has uploaded this change for review. (
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(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/95/43195/1
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: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic75e8454bea4d59d6d7c41f8d9d699dcad56514e
Gerrit-Change-Number: 43195
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <[email protected]>