grabber: make sure grabbed_output always return a string
This commit is contained in:
1 parent
dc91a6d1da
commit
7eb71e0b06
2 files changed
+13
-9
No files matched your search
@@ -65,10 +65,10 @@ p = pm3.pm3()
|
||||
p.console("hf 14a read")
|
||||
uid = None
|
||||
|
||||
if p.grabbed_output is not None:
|
||||
for line in p.grabbed_output.split('\n'):
|
||||
if "UID:" in line:
|
||||
uid = int(line[10:].replace(' ', '')[-8:], 16)
|
||||
for line in p.grabbed_output.split('\n'):
|
||||
print(line)
|
||||
if "UID:" in line:
|
||||
uid = int(line[10:].replace(' ', '')[-8:], 16)
|
||||
|
||||
if uid is None:
|
||||
print("Card not found")
|
||||
|
||||
Reference in new issue
Block a user