diff --git a/platypush/backend/nfc.py b/platypush/backend/nfc.py index c97aa1d3fe..3f042e2cba 100644 --- a/platypush/backend/nfc.py +++ b/platypush/backend/nfc.py @@ -67,6 +67,9 @@ class NfcBackend(Backend): import ndef records = [] + if not tag.ndef: + return records + for record in tag.ndef.records: r = { 'record_type': record.type,