git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@670 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-12-15 10:49:43 +00:00
parent 12a7f8cfa0
commit b8e5336e3a

View File

@@ -271,8 +271,8 @@ class C_APDU(APDU):
self.Le = (apdu[-2]<<8) + apdu[-1]
self.data = apdu[7:-3]
else:
raise ValueError("Invalid Lc value. Is %s, should be %s or %s" % (self.Lc,)
7 + self.Lc, 7 + self.Lc + 3)
raise ValueError("Invalid Lc value. Is %s, should be %s or %s"
% ( self.Lc, 7 + self.Lc, 7 + self.Lc + 3))
else: # short apdu
if len(apdu) == 5: # case 2 short apdu
self.Le = apdu[-1]