Skip to content

Commit

Permalink
Skip module check in __init__ because it blocks automated installs wh…
Browse files Browse the repository at this point in the history
…en django is not present (#133)
  • Loading branch information
wasare authored Feb 4, 2022
1 parent 06a383b commit 79a272d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions todo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
__license__ = "BSD License"

try:
# if django is not installed,
# skips check because it blocks automated installs
import django
from . import check
except ModuleNotFoundError:
# this can happen during install time, if django is not installed yet!
Expand Down

0 comments on commit 79a272d

Please sign in to comment.