Browse Source

add doctor to safe_commands (#13324)

pull/13332/head
Zach White 2 years ago
committed by GitHub
parent
commit
7c2bd4dd88
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/python/qmk/cli/__init__.py

+ 2
- 1
lib/python/qmk/cli/__init__.py View File

@ -22,6 +22,7 @@ safe_commands = [
# A list of subcommands we always run, even when the module imports fail
'clone',
'config',
'doctor',
'env',
'setup',
]
@ -190,7 +191,7 @@ for subcommand in subcommands:
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:


Loading…
Cancel
Save