mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fixed exception syntax of a parallel branch.
This commit is contained in:
parent
43e6a1a0ef
commit
b7d6faa46d
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue