aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-prog.py
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-12-23 20:27:48 +0100
committerSylvain Munaut <tnt@246tNt.com>2010-12-23 20:27:48 +0100
commit8d243e884757744af8c4708a1f8b30c2b30d9da8 (patch)
tree78042704f14f51756b52dce97f4dd9fee434a227 /pySim-prog.py
parent98d2b85a974dc8cc935290c567aef9a0f6226e46 (diff)
pySim-prog: Fix crash when using manuam imsi/iccid/kc
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'pySim-prog.py')
-rwxr-xr-xpySim-prog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pySim-prog.py b/pySim-prog.py
index 12021aa..f599cb7 100755
--- a/pySim-prog.py
+++ b/pySim-prog.py
@@ -435,7 +435,8 @@ if __name__ == '__main__':
write_parameters(opts, cp)
# Batch mode state update and save
- opts.num += 1
+ if opts.num is not None:
+ opts.num += 1
save_batch(opts)
# Done for this card and maybe for everything ?