forked from sim-card/pysim
1
0
Fork 0

pySim-prog.py: Resolve possible variable use before assignment

pySim-prog.py:741:7: E0606: Possibly using variable 'cp' before assignment (possibly-used-before-assignment)

Change-Id: I6ab307db378d2ca76dfeae53dc3befa7c103974d
This commit is contained in:
Harald Welte 2024-05-22 18:02:16 +02:00
parent 81bc26cc31
commit a3f22ea259
1 changed files with 1 additions and 0 deletions

View File

@ -723,6 +723,7 @@ def process_card(scc, opts, first, ch):
card.erase()
card.reset()
cp = None
# Generate parameters
if opts.source == 'cmdline':
cp = gen_parameters(opts)