From a5d97931033a142a65d6ccdd06b5d345f535513d Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 16 Oct 2013 22:43:10 +0200 Subject: Modernize exception catching syntax. --- debug_toolbar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/__init__.py') 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' -- cgit v1.2.3