Merge pull request #482 from Daimler/custom-link-error-fix
Fixes #480: Custom Links initialiser breaks if content_type is invalid
This commit is contained in:
commit
a5da38203f
@ -23,7 +23,7 @@ for link in custom_links:
|
|||||||
if link["content_type_id"] is None:
|
if link["content_type_id"] is None:
|
||||||
print(
|
print(
|
||||||
"⚠️ Unable to create Custom Link '{0}': The content_type '{1}' is unknown".format(
|
"⚠️ Unable to create Custom Link '{0}': The content_type '{1}' is unknown".format(
|
||||||
link.name, content_type
|
link.get('name'), content_type
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user