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