cli: handle receivers with no firmware information

This commit is contained in:
Peter F. Patel-Schneider 2020-03-16 10:53:05 -04:00 committed by Filipe Laíns
parent eda1399330
commit 1eef88eb44
1 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ def _print_receiver(receiver):
print (' Device path :', receiver.path) print (' Device path :', receiver.path)
print (' USB id : 046d:%s' % receiver.product_id) print (' USB id : 046d:%s' % receiver.product_id)
print (' Serial :', receiver.serial) print (' Serial :', receiver.serial)
if receiver.firmware:
for f in receiver.firmware: for f in receiver.firmware:
print (' %-11s: %s' % (f.kind, f.version)) print (' %-11s: %s' % (f.kind, f.version))