Skip to content

Commit 95fcf90

Browse files
committed
fix: catch TypeError in common settings
1 parent 9030cd6 commit 95fcf90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eox_theming/settings/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def plugin_settings(settings):
5050

5151
try:
5252
settings.TEMPLATES[0]['OPTIONS']['loaders'][0] = 'eox_theming.theming.template_loaders.EoxThemeTemplateLoader'
53-
except AttributeError:
53+
except (AttributeError, TypeError):
5454
# We must find a way to register this error
5555
pass
5656

@@ -62,7 +62,7 @@ def plugin_settings(settings):
6262
settings.TEMPLATES[1]['OPTIONS']['context_processors'].append(eox_configuration_path)
6363

6464
settings.DEFAULT_TEMPLATE_ENGINE = settings.TEMPLATES[0]
65-
except AttributeError:
65+
except (AttributeError, TypeError):
6666
# We must find a way to register this error
6767
pass
6868

@@ -71,7 +71,7 @@ def plugin_settings(settings):
7171
'eox_theming.theming.middleware.EoxThemeMiddleware' if 'CurrentSiteThemeMiddleware' in x else x
7272
for x in settings.MIDDLEWARE
7373
]
74-
except AttributeError:
74+
except (AttributeError, TypeError):
7575
# We must find a way to register this error.
7676
pass
7777

0 commit comments

Comments
 (0)