aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/__init__.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-16 22:43:10 +0200
committerAymeric Augustin2013-10-17 18:24:57 +0200
commita5d97931033a142a65d6ccdd06b5d345f535513d (patch)
tree16ae04a2d7a82ee4737dbddfe9c9b5549434398c /debug_toolbar/__init__.py
parenteacf116d61f0e3f47a7c581275a18b3aec8548b1 (diff)
downloaddjango-debug-toolbar-a5d97931033a142a65d6ccdd06b5d345f535513d.tar.bz2
Modernize exception catching syntax.
Diffstat (limited to 'debug_toolbar/__init__.py')
-rw-r--r--debug_toolbar/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug_toolbar/__init__.py b/debug_toolbar/__init__.py
index 48da4a6..feb6925 100644
--- a/debug_toolbar/__init__.py
+++ b/debug_toolbar/__init__.py
@@ -3,5 +3,5 @@ __all__ = ('VERSION',)
try:
VERSION = __import__('pkg_resources') \
.get_distribution('django-debug-toolbar').version
-except Exception, e:
+except Exception as e:
VERSION = 'unknown'