mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Raise KnownPublishError instead of assert
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
0b3cb6942d
commit
8b3ce3044a
1 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,8 @@ class SaveCurrentWorkfile(pyblish.api.ContextPlugin):
|
|||
def process(self, context):
|
||||
|
||||
host = registered_host()
|
||||
assert context.data['currentFile'] == host.get_current_workfile()
|
||||
if context.data['currentFile'] != host.get_current_workfile():
|
||||
raise KnownPublishError("Workfile has changed during publishing!")
|
||||
|
||||
if host.has_unsaved_changes():
|
||||
self.log.info("Saving current file..")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue