Skip to content

Commit a5da382

Browse files
authored
Merge pull request #482 from Daimler/custom-link-error-fix
Fixes #480: Custom Links initialiser breaks if content_type is invalid
2 parents 14c0d17 + a2e33c1 commit a5da382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

startup_scripts/280_custom_links.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_content_type_id(content_type):
2323
if link["content_type_id"] is None:
2424
print(
2525
"⚠️ Unable to create Custom Link '{0}': The content_type '{1}' is unknown".format(
26-
link.name, content_type
26+
link.get('name'), content_type
2727
)
2828
)
2929
continue

0 commit comments

Comments
 (0)