mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
simpler coverage ignore
This commit is contained in:
parent
e693fe1e41
commit
673435fe90
@ -10,13 +10,13 @@ if __name__ == "__main__":
|
|||||||
# The above import may fail for some other reason. Ensure that the
|
# The above import may fail for some other reason. Ensure that the
|
||||||
# issue is really that Django is missing to avoid masking other
|
# issue is really that Django is missing to avoid masking other
|
||||||
# exceptions on Python 2.
|
# exceptions on Python 2.
|
||||||
try: # pragma: no cover
|
try:
|
||||||
import django # pragma: no cover # noqa: F401
|
import django # noqa: F401
|
||||||
except ImportError: # pragma: no cover
|
except ImportError:
|
||||||
raise ImportError(
|
raise ImportError(
|
||||||
"Couldn't import Django. Are you sure it's installed and "
|
"Couldn't import Django. Are you sure it's installed and "
|
||||||
"available on your PYTHONPATH environment variable? Did you "
|
"available on your PYTHONPATH environment variable? Did you "
|
||||||
"forget to activate a virtual environment?"
|
"forget to activate a virtual environment?"
|
||||||
) # pragma: no cover
|
)
|
||||||
raise # pragma: no cover
|
raise
|
||||||
execute_from_command_line(sys.argv)
|
execute_from_command_line(sys.argv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user