From b7d6faa46d8ebe71005ffddd39e0db9987ae6a04 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Wed, 27 Mar 2013 12:04:34 +0100 Subject: [PATCH] Fixed exception syntax of a parallel branch. --- configurations/importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configurations/importer.py b/configurations/importer.py index e6e5a91..fd60d73 100644 --- a/configurations/importer.py +++ b/configurations/importer.py @@ -138,14 +138,14 @@ class SettingsLoader(object): (mod.__name__, self.name, err)) try: attributes = uppercase_attributes(obj).items() - except Exception, err: + except Exception as err: raise ImproperlyConfigured("Couldn't get items of settings '%s.%s': %s" % (mod.__name__, self.name, err)) for name, value in attributes: if callable(value): try: value = value() - except Exception, err: + except Exception as err: raise ImproperlyConfigured( "Couldn't execute callable '%s' in '%s.%s': %s" % (value, mod.__name__, self.name, err))