From 6326dfc49d0e2a4fb9fe063f38fbffc8d9875932 Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:01:20 +0200 Subject: [PATCH] fix ruff errors 1 --- client/ayon_wrap/api/lib.py | 2 +- client/ayon_wrap/hooks/pre_replace_placeholders.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_wrap/api/lib.py b/client/ayon_wrap/api/lib.py index 31607b2..bf09db7 100644 --- a/client/ayon_wrap/api/lib.py +++ b/client/ayon_wrap/api/lib.py @@ -97,7 +97,7 @@ def _get_version(project_name, product_name, product_id, else: try: version_int = int(version_val) - except: + except BaseException: raise ApplicationLaunchFailed( f"Couldn't convert value '{version_val}' to " f"integer. Please fix it in '{workfile_path}'") diff --git a/client/ayon_wrap/hooks/pre_replace_placeholders.py b/client/ayon_wrap/hooks/pre_replace_placeholders.py index c55815f..5ebba18 100644 --- a/client/ayon_wrap/hooks/pre_replace_placeholders.py +++ b/client/ayon_wrap/hooks/pre_replace_placeholders.py @@ -3,7 +3,7 @@ import json from ayon_applications import PreLaunchHook, LaunchTypes -from ayon_core.pipeline import Anatomy, AVALON_CONTAINER_ID +from ayon_core.pipeline import AVALON_CONTAINER_ID from ayon_core.lib import get_version_from_path from ayon_wrap import api