diff --git a/lib/python/qmk/cli/__init__.py b/lib/python/qmk/cli/__init__.py index 32da1a9b52e6..7f5e0a1fa6c8 100644 --- a/lib/python/qmk/cli/__init__.py +++ b/lib/python/qmk/cli/__init__.py @@ -22,6 +22,7 @@ # A list of subcommands we always run, even when the module imports fail 'clone', 'config', + 'doctor', 'env', 'setup', ] @@ -190,7 +191,7 @@ def _broken_module_imports(requirements): try: __import__(subcommand) - except ModuleNotFoundError as e: + except (ImportError, ModuleNotFoundError) as e: if safe_command: print(f'Warning: Could not import {subcommand}: {e.__class__.__name__}, {e}') else: