fix TypeError jumbotron.py
@@ -169,6 +169,7 @@ class BootstrapJumbotronPlugin(BootstrapPluginBase):
except Exception as exc:
logger.warning("Unable generate picture elements. Reason: {}".format(exc))
else:
+ try:
if instance.child_plugin_instances and instance.child_plugin_instances[0].plugin_type == 'BootstrapRowPlugin':
padding='padding: {0}px {0}px;'.format(int( app_settings.CMSPLUGIN_CASCADE['bootstrap4']['gutter']/2))
context.update({'add_gutter_if_child_is_BootstrapRowPlugin': padding,})
@@ -176,6 +177,8 @@ class BootstrapJumbotronPlugin(BootstrapPluginBase):
'elements': [e for e in elements if 'media' in e] if elements else [],
'CSS_PREFIXES': app_settings.CSS_PREFIXES,
})
+ except Exception as exc:
+ logger.warning("Unable generate picture elements. Reason: {}".format(exc))
return self.super(BootstrapJumbotronPlugin, self).render(context, instance, placeholder)
@classmethod
