From 901e335fbfd4bfaf4c1a6f1905e9216df026eb51 Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Thu, 14 Nov 2024 19:33:58 +0800 Subject: [PATCH] =?UTF-8?q?#issue:IB4GA6=20deps=5Fguard=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E7=94=A8=E7=A9=BA=E6=A0=BC=E7=AA=81=E5=87=BA?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E5=92=8C=E9=87=8D=E8=A6=81=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuezhou_yan --- tools/deps_guard/rules_checker/chipsetsdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/deps_guard/rules_checker/chipsetsdk.py b/tools/deps_guard/rules_checker/chipsetsdk.py index 10a166e..cc4feef 100755 --- a/tools/deps_guard/rules_checker/chipsetsdk.py +++ b/tools/deps_guard/rules_checker/chipsetsdk.py @@ -94,7 +94,7 @@ class ChipsetSDKRule(BaseRule): so_file_name = so.get("so_file_name") if so_file_name and so_file_name not in res: res.append(so_file_name) - except(FileNotFoundError, IOError, UnicodeDecodeError) as file_open_or_decode_err: + except (FileNotFoundError, IOError, UnicodeDecodeError) as file_open_or_decode_err: self.error(file_open_or_decode_err) return res