Allow passing CollectSceneVersion but with a logged error so validators can catch a nicer error report instead

This commit is contained in:
Roy Nieterau 2024-07-18 23:28:17 +02:00
parent 564365ab00
commit 49a0ccc0d5

View file

@ -47,8 +47,9 @@ class CollectSceneVersion(pyblish.api.ContextPlugin):
return
if not context.data.get('currentFile'):
raise KnownPublishError("Cannot get current workfile path. "
"Make sure your scene is saved.")
self.log.error("Cannot get current workfile path. "
"Make sure your scene is saved.")
return
filename = os.path.basename(context.data.get('currentFile'))