diff --git a/django_dump_die/constants.py b/django_dump_die/constants.py index 89b54836613b3614d73ff1ae7d16c1dbe70180d5..d8b64b22dfdd819adef2c7220eda8c703673625c 100644 --- a/django_dump_die/constants.py +++ b/django_dump_die/constants.py @@ -11,16 +11,16 @@ from django.utils import timezone from pathlib import PosixPath, PurePath, PurePosixPath, PureWindowsPath # Imports that may not be accessible, depending on local python environment setup. -try: - from zoneinfo import ZoneInfo - ZONEINFO_PRESENT = True -except ImportError: - ZONEINFO_PRESENT = False try: import pytz PYTZ_PRESENT = True except ImportError: PYTZ_PRESENT = False +try: + from zoneinfo import ZoneInfo + ZONEINFO_PRESENT = True +except ImportError: + ZONEINFO_PRESENT = False # Simple types that do not need to be recursively inspected.