pySim/exceptions.py: fix referencing an instance member

Change-Id: I6debfc03e9847b907f959e681234daf21df41656
This commit is contained in:
Vadim Yanitskiy 2021-03-12 02:18:06 +01:00 committed by laforge
parent d61da8a64c
commit 3b51f436a4
1 changed files with 1 additions and 1 deletions

View File

@ -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)