From ab91d874e4f78d8053e2ea692361908232d1007d Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 27 Mar 2022 12:32:21 +0200 Subject: [PATCH] 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 --- pySim/ts_31_102.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim/ts_31_102.py b/pySim/ts_31_102.py index fec81bfb..fa3af75c 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)