forked from extern/django-helpdesk
Fix error importing django settings due to naked except
This commit is contained in:
parent
bc0125421b
commit
0b249e1693
@ -8,7 +8,7 @@ from django.core.exceptions import ImproperlyConfigured
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
DEFAULT_USER_SETTINGS = settings.HELPDESK_DEFAULT_SETTINGS
|
DEFAULT_USER_SETTINGS = settings.HELPDESK_DEFAULT_SETTINGS
|
||||||
except ImproperlyConfigured:
|
except ImproperlyConfigured, AttributeError:
|
||||||
DEFAULT_USER_SETTINGS = None
|
DEFAULT_USER_SETTINGS = None
|
||||||
|
|
||||||
if not isinstance(DEFAULT_USER_SETTINGS, dict):
|
if not isinstance(DEFAULT_USER_SETTINGS, dict):
|
||||||
|
Loading…
Reference in New Issue
Block a user