diff --git a/pySim-prog.py b/pySim-prog.py index 12021aaf..f599cb75 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 ?