Skip to content

Commit cf4c4ef

Browse files
Update djangocms_frontend/plugin_tag.py
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 1449947 commit cf4c4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

djangocms_frontend/plugin_tag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def get_plugin_class(settings_string: str | type) -> type:
6666
if "." in settings_string:
6767
# import the class if a dotted path is given
6868
module_name, class_name = settings_string.rsplit(".", 1)
69-
return getattr(importlib.import_module(module_name), class_name, None)
69+
return getattr(importlib.import_module(module_name), class_name)
7070
# Get the plugin class from the plugin pool by its name
7171
return plugin_pool.get_plugin(settings_string)
7272
return settings_string

0 commit comments

Comments
 (0)