From 3b51f436a4163e8716eb6ef25df0f89f71214963 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 12 Mar 2021 02:18:06 +0100 Subject: [PATCH] pySim/exceptions.py: fix referencing an instance member Change-Id: I6debfc03e9847b907f959e681234daf21df41656 --- pySim/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/exceptions.py b/pySim/exceptions.py index 2ffe5f97..4fb8f72a 100644 --- a/pySim/exceptions.py +++ b/pySim/exceptions.py @@ -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)