diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index b7d4114127..ec3cc1bf51 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -30,7 +30,6 @@ from . import exceptions from . import hidpp10_constants as _hidpp10_constants -from . import hidpp20 as _hidpp20 from . import hidpp20_constants as _hidpp20_constants from .base_usb import ALL as _RECEIVER_USB_IDS from .common import strhex as _strhex @@ -495,7 +494,7 @@ def request(handle, devnumber, request_id, *params, no_reply=False, return_error error, _hidpp20_constants.ERROR[error], ) - raise _hidpp20.FeatureCallError(number=devnumber, request=request_id, error=error, params=params) + raise exceptions.FeatureCallError(number=devnumber, request=request_id, error=error, params=params) if reply_data[:2] == request_data[:2]: if devnumber == 0xFF: diff --git a/lib/solaar/cli/show.py b/lib/solaar/cli/show.py index ed859b0a4c..09ad786d81 100644 --- a/lib/solaar/cli/show.py +++ b/lib/solaar/cli/show.py @@ -248,7 +248,7 @@ def _print_device(dev, num=None): print(" %s (saved): %s" % (setting.label, v)) try: v = setting.val_to_string(setting.read(False)) - except _hidpp20.FeatureCallError as e: + except exceptions.FeatureCallError as e: v = "HID++ error " + str(e) except AssertionError as e: v = "AssertionError " + str(e)