mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Fixed hound comments
This commit is contained in:
parent
f70eac116d
commit
5a7bf785f7
1 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue