aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-shell.py
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2023-10-09 13:27:59 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2023-10-10 11:26:56 +0200
commit8e03f2f2ed83497bc06443b6bd065547bd2f8209 (patch)
tree040659ab5df90d9c2bd1faf12adbd5fe7d42c81f /pySim-shell.py
parent91c971bf82648ef5073589aa50fac9d9cec9aa82 (diff)
pySim-shell: do not pass failed card object to PysimApp
When the try block in which we also call init_card() fails, there may be no card object, so we must not pass the card object to PysimApp in the except block. This is also no problem, PysimApp will run without the card object until the user executes do_equip for a second attempt. Related: OS#6210 Change-Id: I28195f442ce007f05f7610c882bbc4a6520a8ce6
Diffstat (limited to 'pySim-shell.py')
-rwxr-xr-xpySim-shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-shell.py b/pySim-shell.py
index 3b6945c..79b4d8b 100755
--- a/pySim-shell.py
+++ b/pySim-shell.py
@@ -1040,7 +1040,7 @@ if __name__ == '__main__':
" it should also be noted that some readers may behave strangely when no card")
print(" is inserted.)")
print("")
- app = PysimApp(card, None, sl, ch, opts.script)
+ app = PysimApp(None, None, sl, ch, opts.script)
# If the user supplies an ADM PIN at via commandline args authenticate
# immediately so that the user does not have to use the shell commands