From 89ee357324628c20fe894e357353ca892fe559fc Mon Sep 17 00:00:00 2001 From: deveco_test Date: Sat, 21 May 2022 14:34:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: deveco_test --- extension/src/xdevice_extension/_core/environment/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extension/src/xdevice_extension/_core/environment/device.py b/extension/src/xdevice_extension/_core/environment/device.py index eadd4de..9c4851c 100644 --- a/extension/src/xdevice_extension/_core/environment/device.py +++ b/extension/src/xdevice_extension/_core/environment/device.py @@ -93,7 +93,8 @@ def perform_device_action(func): self.log.exception("error type: %s, error: %s" % ( error.__class__.__name__, error), exc_info=False) exception = error - raise exception + if exception: + raise exception return device_action -- GitLab