Skip to content

Commit 8426f72

Browse files
committed
Warn instead of failing when lkbuild can't be imported
1 parent b8a7fb6 commit 8426f72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tasks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from cffi import FFI
77

88
from invoke import task
9-
from lkbuild.tasks import * # NOQA: F403, F401
9+
try:
10+
from lkbuild.tasks import * # NOQA: F403, F401
11+
except ImportError:
12+
warnings.warn('lkbuild tasks not available')
1013

1114

1215
@task

0 commit comments

Comments
 (0)