multitenant: skip theme settings work when no template vars are set (#26636)

This commit is contained in:
Frédéric Péters 2018-11-13 08:23:34 +01:00
parent 7ede653252
commit 59eabafe59
1 changed files with 2 additions and 0 deletions

View File

@ -201,6 +201,8 @@ class ThemeSettings(SettingsDictUpdateMixin):
return 0
def update_settings(self, tenant_settings, tenant):
if not hasattr(tenant_settings, 'TEMPLATE_VARS'):
return
theme_id = tenant_settings.TEMPLATE_VARS.get('theme')
if not theme_id:
return