Update client/ayon_core/pipeline/context_tools.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Kayla Man 2024-05-30 16:06:51 +08:00 committed by GitHub
parent 7077b78c33
commit c2504bdd04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -587,7 +587,9 @@ def version_up_workfile():
host = registered_host()
current_file = host.get_current_workfile()
if not current_file:
log.debug("Current file not found.")
log.debug(
"Current file is unsaved and can't be versioned up. "
"Please save your file first.")
return None
filepath = version_up(current_file)
host.save_workfile(filepath)