aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debug_toolbar/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/__init__.py b/debug_toolbar/__init__.py
index 61c4e7a..23bfa55 100644
--- a/debug_toolbar/__init__.py
+++ b/debug_toolbar/__init__.py
@@ -1,13 +1,13 @@
from __future__ import unicode_literals
-__all__ = ('VERSION',)
+__all__ = ['VERSION']
try:
- VERSION = __import__('pkg_resources') \
- .get_distribution('django-debug-toolbar').version
-except Exception as e:
+ import pkg_resources
+ VERSION = pkg_resources.get_distribution('django-debug-toolbar').version
+except Exception:
VERSION = 'unknown'