diff options
author | Zach White <skullydazed@gmail.com> | 2021-06-24 20:31:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 20:31:46 -0700 |
commit | 7c2bd4dd88d29958b7ecc281af463257cc63fd46 (patch) | |
tree | 510db022f71542da9e3516b2c071015b29b01d6d /lib/python | |
parent | 61ec0023c47de0c1418b50e2f76f1eb2c7d9c09b (diff) | |
download | qmk_firmware-7c2bd4dd88d29958b7ecc281af463257cc63fd46.tar.gz qmk_firmware-7c2bd4dd88d29958b7ecc281af463257cc63fd46.zip |
add doctor to safe_commands (#13324)
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/cli/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/__init__.py b/lib/python/qmk/cli/__init__.py index 32da1a9b5..7f5e0a1fa 100644 --- a/lib/python/qmk/cli/__init__.py +++ b/lib/python/qmk/cli/__init__.py | |||
@@ -22,6 +22,7 @@ safe_commands = [ | |||
22 | # A list of subcommands we always run, even when the module imports fail | 22 | # A list of subcommands we always run, even when the module imports fail |
23 | 'clone', | 23 | 'clone', |
24 | 'config', | 24 | 'config', |
25 | 'doctor', | ||
25 | 'env', | 26 | 'env', |
26 | 'setup', | 27 | 'setup', |
27 | ] | 28 | ] |
@@ -190,7 +191,7 @@ for subcommand in subcommands: | |||
190 | try: | 191 | try: |
191 | __import__(subcommand) | 192 | __import__(subcommand) |
192 | 193 | ||
193 | except ModuleNotFoundError as e: | 194 | except (ImportError, ModuleNotFoundError) as e: |
194 | if safe_command: | 195 | if safe_command: |
195 | print(f'Warning: Could not import {subcommand}: {e.__class__.__name__}, {e}') | 196 | print(f'Warning: Could not import {subcommand}: {e.__class__.__name__}, {e}') |
196 | else: | 197 | else: |