代码优化
This commit is contained in:
parent
3d617f1d52
commit
a3226f8e99
|
|
@ -143,6 +143,7 @@ class DealAllTask:
|
|||
while True:
|
||||
try:
|
||||
result = self.async_execute_adb_command(pad_code, file_name, is_check=True)
|
||||
self.logger.info(f"{pad_code};<UNK>{file_name};<UNK>{result}")
|
||||
if result:
|
||||
if isinstance(result, list):
|
||||
return True
|
||||
|
|
@ -151,7 +152,7 @@ class DealAllTask:
|
|||
count += 1
|
||||
time.sleep(30)
|
||||
except Exception as e:
|
||||
logger.info(f"{pad_code[0]}<UNK>; <UNK>: {e}")
|
||||
self.logger.info(f"{pad_code[0]}<UNK>; <UNK>: {e}")
|
||||
if count == times:
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue