From 3d617f1d52a0b66e11f1bfb130ae933f01b4daa1 Mon Sep 17 00:00:00 2001 From: liujianjiang Date: Fri, 9 Jan 2026 17:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_function/deal_all_task.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/public_function/deal_all_task.py b/public_function/deal_all_task.py index 00b9e23..763f957 100644 --- a/public_function/deal_all_task.py +++ b/public_function/deal_all_task.py @@ -141,14 +141,17 @@ class DealAllTask: count = 0 time.sleep(180) while True: - result = self.async_execute_adb_command(pad_code, file_name, is_check=True) - if result: - if isinstance(result, list): - return True - else: - self.logger.info(f"{pad_code[0]}未就绪; 返回结果为: {result}") - count += 1 - time.sleep(30) + try: + result = self.async_execute_adb_command(pad_code, file_name, is_check=True) + if result: + if isinstance(result, list): + return True + else: + self.logger.info(f"{pad_code[0]}未就绪; 返回结果为: {result}") + count += 1 + time.sleep(30) + except Exception as e: + logger.info(f"{pad_code[0]}; : {e}") if count == times: return False