Fixed hound comments

This commit is contained in:
Jacob Danell 2023-03-16 17:13:17 +01:00
parent f70eac116d
commit 5a7bf785f7

View file

@ -26,14 +26,15 @@ class IntegrateKitsuNote(pyblish.api.ContextPlugin):
Formats `instance.data` against the custom template.
"""
def replace_missing_key(match):
"""If key is not found in kwargs, set None instead"""
key = match.group(1)
if key not in instance.data:
self.log.warning(
"Key "{}" was not found in instance.data "
"and will be rendered as "" in the comment".format(key)
"Key '{}' was not found in instance.data "
"and will be rendered as "
" in the comment".format(key)
)
return ""
else: