Skip to content

Commit

Permalink
Warn instead of failing when lkbuild can't be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 30, 2022
1 parent b8a7fb6 commit 8426f72
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
from cffi import FFI

from invoke import task
from lkbuild.tasks import * # NOQA: F403, F401
try:
from lkbuild.tasks import * # NOQA: F403, F401
except ImportError:
warnings.warn('lkbuild tasks not available')


@task
Expand Down

0 comments on commit 8426f72

Please sign in to comment.