pySim-trace: treat CTRL-C / KeyboardInterrupt as normal abort

Change-Id: Ic75e8454bea4d59d6d7c41f8d9d699dcad56514e
This commit is contained in:
Alexander Couzens authored and laforge committed 2026-08-10 09:39:45 +00:00
1 parent ab19049d19
commit 9c77e4ed94
1 file changed
+1 -1
+1 -1
View File
@@ -117,7 +117,7 @@ class Tracer:
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