Commit d5e342f3 by lei

1

parent 54949814
......@@ -246,7 +246,7 @@ class ToWork:
if text_el:
title = await page.evaluate('(element) => element.textContent', text_el)
# 判断失败
if 'Failed to process your command' in title:
if 'Failed to process your command' in title or 'Sorry! Could not complete the job' in title:
logger.info('本次任务失败')
# 回调
await self.img_callback(task, '', title)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment