vicc: fixed type error in nPA generation

fixes https://github.com/frankmorgner/vsmartcard/issues/247
This commit is contained in:
Frank Morgner
2023-02-14 16:22:13 +01:00
parent 8c0e373cae
commit 38709f3ad8

View File

@@ -466,7 +466,7 @@ class CardGenerator(object):
else: else:
dg17 = None dg17 = None
if (CommunityID.rstrip() != "<NotOnChip>"): if (CommunityID.rstrip() != "<NotOnChip>"):
dg18 = pack([(0x72, 0, [(0x04, 0, bytes(CommunityID_Binary, "ascii"))])], True) dg18 = pack([(0x72, 0, [(0x04, 0, CommunityID_Binary)])], True)
else: else:
dg18 = None dg18 = None
if (ResidencePermit1.rstrip() != "<NotOnChip>"): if (ResidencePermit1.rstrip() != "<NotOnChip>"):