Change in pysim[master]: pySim/exceptions.py: fix referencing an instance member

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Fri Mar 12 07:32:17 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/23332 )

Change subject: pySim/exceptions.py: fix referencing an instance member
......................................................................

pySim/exceptions.py: fix referencing an instance member

Change-Id: I6debfc03e9847b907f959e681234daf21df41656
---
M pySim/exceptions.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/pySim/exceptions.py b/pySim/exceptions.py
index 2ffe5f9..4fb8f72 100644
--- a/pySim/exceptions.py
+++ b/pySim/exceptions.py
@@ -39,7 +39,7 @@
 		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)

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23332
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6debfc03e9847b907f959e681234daf21df41656
Gerrit-Change-Number: 23332
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210312/05cdaac0/attachment.htm>


More information about the gerrit-log mailing list