bytearray index out of range error in the dev-tags branch
I'm getting the occasional exception when running "tagtool show" in your dev-tags branch. I don't know if this is a known issue, but wanted to flag it up anyway.
test@nfc-
[nfc.clf] searching for reader with path 'usb'
[nfc.clf] using SCM Micro SCL3711-NFC&RW PN533v2.7 at usb:001:017
** waiting for a tag **
Type2Tag 'NXP NTAG203' ID=0438ADE2463480 ATQ=4400 SAK=00
Traceback (most recent call last):
File "examples/
TagTool().run()
File "/home/
while self.run_once() and self.options.loop:
File "/home/
return clf.connect(
File "/home/
result = self._rdwr_
File "/home/
if callback and callback(tag):
File "examples/
self.
File "examples/
if tag.ndef:
File "/home/
if ndef.has_changed:
File "/home/
old_data, self._data = self._data, self._read_
File "/home/
if self._read_
File "/home/
if tag_memory[12] != 0xE1:
File "/home/
return self._data_
IndexError: bytearray index out of range
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Nick Ludlam for more information if necessary.