Commits

Flavio Curella  committed 0331d4f Merge
  • Participants
  • Parent commits 62cd1c0, 25d3704

Comments (0)

Files changed (1)

File timedelta/__init__.py

 __version__ = open(os.path.join(os.path.dirname(__file__), "VERSION")).read().strip()
 
 try:
+    from django.core.exceptions import ImproperlyConfigured
+except ImportError:
+    ImproperlyConfigured = ImportError
+
+try:
     from .fields import TimedeltaField
     from .helpers import (
         divide, multiply, modulo, 
         percentage, decimal_percentage,
         total_seconds
     )
-except ImportError:
-    pass
+except (ImportError, ImproperlyConfigured):
+    pass