From b0b32c4beeb46520776522c86249358484cb28f4 Mon Sep 17 00:00:00 2001 From: Break27 Date: Fri, 14 Aug 2026 10:44:43 +0800 Subject: [PATCH] fix: failure on uploading data --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 34664eb..660e636 100644 --- a/main.py +++ b/main.py @@ -498,7 +498,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')): try: span = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) span:nth-child(1)", wait=False) err = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(5) .okki-space-item:nth-child(1) button", wait=False) - ok = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) a", wait=False) if span.get_attribute('title') else None + ok = locate(".mm-tbody table tbody tr:nth-child(1) td:nth-child(3) a", wait=False) if span.text == '成功:0' else None break except: pass try: click(".product-import-img-footer button.mm-button__primary", wait=False)