ignore import error

This commit is contained in:
Matthias 2022-02-13 04:37:38 +01:00
parent 65f3c3fce4
commit 01b8bca501
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -11,7 +11,7 @@ if __name__ == "__main__":
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try: # pragma: no cover
import django # pragma: no cover
import django # pragma: no cover # noqa: F401
except ImportError: # pragma: no cover
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "