From a0ce95f935a06cafa97cbdbd2d619e023a4e697c Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 11 Jun 2024 15:21:20 +0200 Subject: [PATCH] Actually raise an error instead of just creating an `AssertionError` instance and doing nothing with it --- client/ayon_core/plugins/publish/collect_farm_target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_core/plugins/publish/collect_farm_target.py b/client/ayon_core/plugins/publish/collect_farm_target.py index bd7dfdcd46..708f1b45a4 100644 --- a/client/ayon_core/plugins/publish/collect_farm_target.py +++ b/client/ayon_core/plugins/publish/collect_farm_target.py @@ -27,7 +27,7 @@ class CollectFarmTarget(pyblish.api.InstancePlugin): # addons that were searched for yet not found for farm_renderer in farm_renderer_addons: self.log.error(f"Cannot find AYON addon '{farm_renderer}'.") - AssertionError("No AYON renderer addon found") + raise RuntimeError("No AYON renderer addon found.") self.log.debug("Collected render target: {0}".format(farm_name)) instance.data["toBeRenderedOn"] = farm_name