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/.

fixeria gerrit-no-reply at lists.osmocom.org
Fri Mar 12 01:18:24 UTC 2021


fixeria has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/32/23332/1

diff --git a/pySim/exceptions.py b/pySim/exceptions.py
index 156ec62..cfc234c 100644
--- a/pySim/exceptions.py
+++ b/pySim/exceptions.py
@@ -47,7 +47,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: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210312/f5599331/attachment.htm>


More information about the gerrit-log mailing list