Skip to content

Commit 7673487

Browse files
authored
Update manage.py
1 parent b38b6dc commit 7673487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/manage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ def main():
99
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangobackend.settings')
1010
try:
1111
from django.core.management import execute_from_command_line
12-
except ImportError:
12+
except ImportError as exc:
1313
raise ImportError(
1414
"Couldn't import Django. Are you sure it's installed and "
1515
"available on your PYTHONPATH environment variable? Did you "
1616
"forget to activate a virtual environment?"
17-
)
17+
) from exc
1818
execute_from_command_line(sys.argv)
1919

2020

0 commit comments

Comments
 (0)