Skip to content

Commit a459a06

Browse files
committed
fix indentation
1 parent 05a8341 commit a459a06

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

djangocms_frontend/cms_plugins.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ def update_plugin_pool():
2424
# Loop through the slot plugins associated with the current plugin
2525
for slot_plugin in slot_plugins:
2626
# Add the slot plugin to the global namespace
27-
# Register slot plugins, checking for name conflicts
28-
for slot_plugin in slot_plugins:
29-
if slot_plugin.__name__ not in plugin_pool.plugins:
30-
globals()[slot_plugin.__name__] = slot_plugin
31-
plugin_pool.register_plugin(slot_plugin)
32-
else:
33-
raise ImproperlyConfigured(
34-
f"Cannot register slot plugin {slot_plugin.__name__} "
35-
f"since a plugin {slot_plugin.__name__} is already registered "
36-
f"by {plugin_pool.plugins[slot_plugin.__name__].__module__}."
37-
)
27+
# Register slot plugins, checking for name conflicts
28+
for slot_plugin in slot_plugins:
29+
if slot_plugin.__name__ not in plugin_pool.plugins:
30+
globals()[slot_plugin.__name__] = slot_plugin
31+
plugin_pool.register_plugin(slot_plugin)
32+
else:
33+
raise ImproperlyConfigured(
34+
f"Cannot register slot plugin {slot_plugin.__name__} "
35+
f"since a plugin {slot_plugin.__name__} is already registered "
36+
f"by {plugin_pool.plugins[slot_plugin.__name__].__module__}."
37+
)
3838
else:
3939
raise ImproperlyConfigured(
4040
f"Cannot register frontend component {key} since a plugin {plugin.__name__} "

0 commit comments

Comments
 (0)