From bc57587efcc90ff4789e549f6575cd906f2184f0 Mon Sep 17 00:00:00 2001 From: loonghao Date: Sun, 5 May 2024 23:46:13 +0800 Subject: [PATCH] style: fix hound check Signed-off-by: loonghao --- maya_umbrella/core.py | 3 --- maya_umbrella/hooks/fix_on_model_change_3dc.py | 6 +++--- maya_umbrella/vaccine.py | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/maya_umbrella/core.py b/maya_umbrella/core.py index c2ef7f7..a5bb67b 100644 --- a/maya_umbrella/core.py +++ b/maya_umbrella/core.py @@ -1,8 +1,5 @@ # Import built-in modules -from collections import defaultdict import logging -import os -import re # Import third-party modules import maya.api.OpenMaya as om diff --git a/maya_umbrella/hooks/fix_on_model_change_3dc.py b/maya_umbrella/hooks/fix_on_model_change_3dc.py index 27f4dd1..8e15323 100644 --- a/maya_umbrella/hooks/fix_on_model_change_3dc.py +++ b/maya_umbrella/hooks/fix_on_model_change_3dc.py @@ -6,14 +6,14 @@ def hook(logger): try: mel.eval("global proc onModelChange3dc(string $a){}") - except: + except Exception: pass try: cmds.delete("fixCgAbBlastPanelOptChangeCallback") - except: + except Exception: pass try: script = "global proc CgAbBlastPanelOptChangeCallback(string $i){}" mel.eval(script) - except: + except Exception: pass diff --git a/maya_umbrella/vaccine.py b/maya_umbrella/vaccine.py index fe2fe43..0285943 100644 --- a/maya_umbrella/vaccine.py +++ b/maya_umbrella/vaccine.py @@ -163,7 +163,7 @@ def fix_bad_nodes(self): for node in self.bad_nodes: self.logger.info("Deleting %s", node) try: - cmds.lockNode(node, l=False) + cmds.lockNode(node, lock=False) except ValueError: pass try: