EMVCAP icon indicating copy to clipboard operation
EMVCAP copied to clipboard

parsedRAPDU: TypeError: argument of type 'bool' is not iterable

Open eBug opened this issue 4 years ago • 1 comments

Traceback (most recent call last):
  File "/usr/local/bin/EMV-CAP", line 453, in <module>
    if 0x80 in parsedRAPDU:
TypeError: argument of type 'bool' is not iterable

the referred line is: if 0x80 in parsedRAPDU:

This happens after upgrading my system to Debian 11. I'm no good at python, so I'm pretty clueless...

eBug avatar Sep 23 '21 12:09 eBug

echoing parsedRAPDU shows:

[<TLV
    Tag:    77 (response message template format 2)
            application class
            constructed
    Length: 14 bytes
    Value:  
    [<TLV
        Tag:    82 (application interchange profile (AIP))
                context specific class
                primitive
        Length: 2 bytes
        Value:  3900
    >, <TLV
        Tag:    94 (application file locator)
                context specific class
                primitive
        Length: 8 bytes
        Value:  0801010110010501
    >]
>]

eBug avatar Sep 23 '21 12:09 eBug