mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-09 16:28:49 +03:00
pySim/exceptions.py: fix referencing an instance member
Change-Id: I6debfc03e9847b907f959e681234daf21df41656
This commit is contained in:
1 parent
d61da8a64c
commit
3b51f436a4
1 file changed
+1
-1
+1
-1
@@ -39,7 +39,7 @@ class SwMatchError(Exception):
|
||||
self.rs = rs
|
||||
def __str__(self):
|
||||
if self.rs:
|
||||
r = self.rs.interpret_sw(sw_actual)
|
||||
r = self.rs.interpret_sw(self.sw_actual)
|
||||
if r:
|
||||
return "SW match failed! Expected %s and got %s: %s - %s" % (self.sw_expected, self.sw_actual, r[0], r[1])
|
||||
return "SW match failed! Expected %s and got %s." % (self.sw_expected, self.sw_actual)
|
||||
Reference in new issue
Block a user