diff --git a/rpm/__init__.py b/rpm/__init__.py index 967a66f..17c8e6b 100644 --- a/rpm/__init__.py +++ b/rpm/__init__.py @@ -88,10 +88,13 @@ def initialize() -> None: except ShimAlreadyInitializingError: continue except Exception as e: - logger.error(f"Exception: {e}") + logger.debug(f"Exception: {type(e)}: {e}") continue else: - raise ImportError("Failed to import system RPM module") + raise ImportError( + "Failed to import system RPM module. " + "Make sure RPM Python bindings are installed on your system." + ) # avoid repeated initialization of the shim module