diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-11-10 16:38:40 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-11-11 08:34:14 +0000 |
commit | 6b590c5483965051b638bde638eb28beee371fa9 (patch) | |
tree | 1a01a1474b250fdae00b5a508d07c2279a8f36cf | |
parent | 51cad0d23434f631c95aff25939081390e4758d0 (diff) |
filesystem: CardProfile: initialize empty sw table as empty dict
The table that holds the status word descriptions is initialized as an
empty list '[]'. This is not correct since the interpret_sw method
processes this data as dictionary, so lets initialize the sw member with
an empty dict '{}' when not status word description is given.
Change-Id: I3cae83f0f6ab274546991ecd14425f094b2816b2
Related: OS#5274
-rw-r--r-- | pySim/filesystem.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/filesystem.py b/pySim/filesystem.py index 24872c0..0238c97 100644 --- a/pySim/filesystem.py +++ b/pySim/filesystem.py @@ -1461,7 +1461,7 @@ class CardProfile(object): self.name = name self.desc = kw.get("desc", None) self.files_in_mf = kw.get("files_in_mf", []) - self.sw = kw.get("sw", []) + self.sw = kw.get("sw", {}) self.applications = kw.get("applications", []) self.shell_cmdsets = kw.get("shell_cmdsets", []) self.cla = kw.get("cla", "00") |