summaryrefslogtreecommitdiff
path: root/lib/python/qmk/path.py
diff options
context:
space:
mode:
authorZach White <skullydazed@users.noreply.github.com>2020-05-27 00:43:22 -0700
committerDrashna Jael're <drashna@live.com>2020-08-08 20:33:17 -0700
commit51912a8efcc5aa1e73dc67addb7c2ac9a5f651f8 (patch)
tree85aabf0dbca3ce7453895f638f48ff8d142fa46c /lib/python/qmk/path.py
parentea0abec564ede7612eb4335aec88dff6bd0a6324 (diff)
Fix running qmk info without any arguments (#9218)
Diffstat (limited to 'lib/python/qmk/path.py')
-rw-r--r--lib/python/qmk/path.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/qmk/path.py b/lib/python/qmk/path.py
index 8df6f0e915..591fad034b 100644
--- a/lib/python/qmk/path.py
+++ b/lib/python/qmk/path.py
@@ -11,9 +11,10 @@ from qmk.errors import NoSuchKeyboardError
def is_keyboard(keyboard_name):
"""Returns True if `keyboard_name` is a keyboard we can compile.
"""
- keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
- rules_mk = keyboard_path / 'rules.mk'
- return rules_mk.exists()
+ if keyboard_name:
+ keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
+ rules_mk = keyboard_path / 'rules.mk'
+ return rules_mk.exists()
def under_qmk_firmware():