From a2e33c166db166f2c9ff4f9d3c33c71b60fc164b Mon Sep 17 00:00:00 2001 From: Marcus Crane Date: Thu, 1 Apr 2021 18:48:13 +1300 Subject: [PATCH] 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 --- startup_scripts/280_custom_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup_scripts/280_custom_links.py b/startup_scripts/280_custom_links.py index 459ede3..b611763 100644 --- a/startup_scripts/280_custom_links.py +++ b/startup_scripts/280_custom_links.py @@ -23,7 +23,7 @@ for link in custom_links: if link["content_type_id"] is None: print( "⚠️ Unable to create Custom Link '{0}': The content_type '{1}' is unknown".format( - link.name, content_type + link.get('name'), content_type ) ) continue