pySim-prog: Fix crash when using manuam imsi/iccid/kc

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
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 @@
 		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 ?