From feed837ee01e39c90bf87ecfa66488ee743f1b2a Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Sun, 4 Mar 2012 21:35:31 +0000 Subject: [PATCH] fixed throwing SwError thanks, Ben. git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@728 96b47cad-a561-4643-ad3b-153ac7d7599c --- virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py index d83ae18..b801cc8 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/VirtualSmartcard.py @@ -329,7 +329,7 @@ class Iso7816OS(SmartcardOS): c = self.SAM.parse_SM_CAPDU(c, header_authentication) logging.info("Decrypted APDU:\n%s", str(c)) elif SM_STATUS == "Proprietary SM": - raise SwError("ERR_SECMESSNOTSUPPORTED") + raise SwError(SW["ERR_SECMESSNOTSUPPORTED"]) sw, result = self.ins2handler.get(c.ins, notImplemented)(c.p1, c.p2, c.data) if SM_STATUS == "Standard SM": answer = self.formatResult(Iso7816OS.seekable(c.ins), c.effective_Le, result, sw, True)