mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Fix raise calls
This commit is contained in:
parent
6120efc591
commit
af3c8d01fd
3 changed files with 4 additions and 4 deletions
|
|
@ -54,7 +54,7 @@ def start_rendering():
|
|||
anatomy = Anatomy(project)
|
||||
root = anatomy.roots['renders']
|
||||
except:
|
||||
raise("Could not find render root in anatomy settings.")
|
||||
raise Exception("Could not find render root in anatomy settings.")
|
||||
|
||||
render_dir = f"{root}/{project}"
|
||||
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ class CameraLoader(plugin.Loader):
|
|||
sequences = ar.get_assets(filter)
|
||||
|
||||
if not sequences:
|
||||
raise("Could not find sequence.")
|
||||
raise Exception("Could not find sequence.")
|
||||
|
||||
world = ar.get_asset_by_object_path(
|
||||
EditorLevelLibrary.get_editor_world().get_path_name())
|
||||
|
|
@ -438,7 +438,7 @@ class CameraLoader(plugin.Loader):
|
|||
|
||||
# There should be only one map in the list
|
||||
if not maps:
|
||||
raise("Could not find map.")
|
||||
raise Exception("Could not find map.")
|
||||
|
||||
map = maps[0]
|
||||
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ class CollectRenderInstances(pyblish.api.InstancePlugin):
|
|||
anatomy = Anatomy(project)
|
||||
root = anatomy.roots['renders']
|
||||
except:
|
||||
raise("Could not find render root in anatomy settings.")
|
||||
raise Exception("Could not find render root in anatomy settings.")
|
||||
|
||||
render_dir = f"{root}/{project}/{s.get('output')}"
|
||||
render_path = Path(render_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue