forked from public/pysim
pySim/exceptions.py: fix referencing an instance member
Change-Id: I6debfc03e9847b907f959e681234daf21df41656
This commit is contained in:
@@ -39,7 +39,7 @@ class SwMatchError(Exception):
|
|||||||
self.rs = rs
|
self.rs = rs
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.rs:
|
if self.rs:
|
||||||
r = self.rs.interpret_sw(sw_actual)
|
r = self.rs.interpret_sw(self.sw_actual)
|
||||||
if r:
|
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: %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)
|
return "SW match failed! Expected %s and got %s." % (self.sw_expected, self.sw_actual)
|
||||||
|
|||||||
Reference in New Issue
Block a user