Skip to content

Commit

Permalink
add doctor to safe_commands (qmk#13324)
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Jun 25, 2021
1 parent 61ec002 commit 7c2bd4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/python/qmk/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# A list of subcommands we always run, even when the module imports fail
'clone',
'config',
'doctor',
'env',
'setup',
]
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7c2bd4d

Please sign in to comment.