From 3fe52398ed6f91aaca6ef580551f0c923ae7c513 Mon Sep 17 00:00:00 2001 From: oepen Date: Tue, 26 Jul 2011 11:16:59 +0000 Subject: [PATCH] Imported minor bugfix from upstream git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@437 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/utils.py b/virtualsmartcard/src/vpicc/virtualsmartcard/utils.py index 66fb053..d917c6c 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/utils.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/utils.py @@ -214,7 +214,7 @@ class APDU(object): elif isinstance(value, str): setattr(self, "_"+name, ord(value)) else: - raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (namelower, type(value)) + raise ValueError, "'%s' attribute can only be a byte, that is: int or str, not %s" % (name, type(value)) def _format_parts(self, fields): "utility function to be used in __str__ and __repr__"