Fix error importing django settings due to naked except

This commit is contained in:
Garret Wassermann 2017-12-06 02:11:45 -05:00
parent bc0125421b
commit 0b249e1693

View File

@ -8,7 +8,7 @@ from django.core.exceptions import ImproperlyConfigured
try:
DEFAULT_USER_SETTINGS = settings.HELPDESK_DEFAULT_SETTINGS
except ImproperlyConfigured:
except ImproperlyConfigured, AttributeError:
DEFAULT_USER_SETTINGS = None
if not isinstance(DEFAULT_USER_SETTINGS, dict):