Fix raise calls

This commit is contained in:
Simone Barbieri 2022-04-28 10:59:34 +01:00
parent 6120efc591
commit af3c8d01fd
3 changed files with 4 additions and 4 deletions

View file

@ -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}"

View file

@ -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]

View file

@ -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)