Merge pull request #3695 from pypeclub/bugfix/fix-publishing-without-set-hostname

RoyalRender: handle host name that is not set
This commit is contained in:
Ondřej Samohel 2022-08-19 14:01:35 +02:00 committed by GitHub
commit aa9e63fe90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -1459,6 +1459,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
output = -1
regexes = self.compile_list_of_regexes(in_list)
for regex in regexes:
if not value:
continue
if re.match(regex, value):
output = 1
break

View file

@ -93,6 +93,6 @@ class IntegrateSubsetGroup(pyblish.api.InstancePlugin):
return {
"families": anatomy_data["family"],
"tasks": task.get("name"),
"hosts": anatomy_data["app"],
"hosts": instance.context.data["hostName"],
"task_types": task.get("type")
}