Skip to content

Commit

Permalink
cli: be defensive in device error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Jan 23, 2024
1 parent 67b883a commit 410cd68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solaar/cli/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _print_device(dev, num=None):
try:
dev.ping()
except _base.NoSuchDevice:
print(' %d: Device not found' % num or dev.number)
print(' %s: Device not found' % num or dev.number)
return

print(' %d: %s' % (num or dev.number, dev.name))
Expand Down

0 comments on commit 410cd68

Please sign in to comment.