aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2022-03-27 12:32:21 +0200
committerHarald Welte <laforge@osmocom.org>2022-03-27 12:33:55 +0200
commitab91d874e4f78d8053e2ea692361908232d1007d (patch)
tree54e18db805a477e75a7daa75344024d6204fb0f1
parentaefd0649a2069abd1354dde35c4af6fc0d451807 (diff)
ts_31_102: Avoid pylint false positive
This should avoid the following pylint error: ************* Module pySim.ts_31_102 pySim/ts_31_102.py:621:100: E0601: Using variable 'sw' before assignment (used-before-assignment) Change-Id: I0bb9607cdab0e6e3cd17b4d27129a51a607bc0f2
-rw-r--r--pySim/ts_31_102.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py
index fec81bf..fa3af75 100644
--- a/pySim/ts_31_102.py
+++ b/pySim/ts_31_102.py
@@ -609,6 +609,7 @@ class EF_UServiceTable(TransparentEF):
should_exist = f.should_exist_for_services(active_services)
try:
cmd.rs.select_file(f)
+ sw = None
exists = True
except SwMatchError as e:
sw = str(e)