Skip to content

Commit a2e33c1

Browse files
committed
Fix link name reference if content type is invalid
Currently, the name of a custom link is referenced as if it is an object attribute which causes a break due to it actually being a dictionary. This minor change means that the startup script won't *ahem* fail upon failing :) Signed-Off-by: Marcus Crane <marcus.crane@daimler.com>
1 parent cb5ffa0 commit a2e33c1

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)