From 2239cbb9a59026967b7179a7ad46fbded33cefa8 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 10 Jan 2023 14:56:02 -0700 Subject: [PATCH] Update manage.py --- manage.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/manage.py b/manage.py index c70b0da..bb4c9f8 100755 --- a/manage.py +++ b/manage.py @@ -2,21 +2,16 @@ import os import sys -from future.utils import raise_from - if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "django_extra_field_validation.settings" ) try: from django.core.management import execute_from_command_line - except ImportError as exc: - raise_from( - ImportError( - "Couldn't import Django. Are you sure it's installed and " - "available on your PYTHONPATH environment variable? Did you " - "forget to activate a virtual environment?" - ), - exc, + except ImportError: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" ) execute_from_command_line(sys.argv)