Skip to content

Commit

Permalink
cli: catch assertion errors when reading setting values from devices
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Feb 10, 2024
1 parent 4c7f3fe commit b3bc932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/solaar/cli/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def _print_device(dev, num=None):
v = setting.val_to_string(setting.read(False))
except _hidpp20.FeatureCallError as e:
v = 'HID++ error ' + str(e)
except AssertionError as e:
v = 'AssertionError ' + str(e)
print(' %s : %s' % (setting.label, v))

if dev.online and dev.keys:
Expand Down

0 comments on commit b3bc932

Please sign in to comment.