mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-08-15 09:34:37 +03:00
pySim-trace: treat CTRL-C / KeyboardInterrupt as normal abort
Change-Id: Ic75e8454bea4d59d6d7c41f8d9d699dcad56514e
This commit is contained in:
committed by
laforge
parent
ab19049d19
commit
9c77e4ed94
+1
-1
@@ -117,7 +117,7 @@ class Tracer:
|
|||||||
try:
|
try:
|
||||||
apdu = self.source.read()
|
apdu = self.source.read()
|
||||||
apdu_counter = apdu_counter + 1
|
apdu_counter = apdu_counter + 1
|
||||||
except StopIteration:
|
except (StopIteration, KeyboardInterrupt):
|
||||||
print("%i APDUs parsed, stop iteration." % apdu_counter)
|
print("%i APDUs parsed, stop iteration." % apdu_counter)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user