From 6018658458fa221732f16f7d1ac9b2f2da5cfc2b Mon Sep 17 00:00:00 2001 From: Break27 Date: Tue, 18 Aug 2026 14:21:03 +0800 Subject: [PATCH] fix: removed redundant type conversion calls --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index e0f8850..e5891f2 100644 --- a/main.py +++ b/main.py @@ -432,7 +432,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')): flow.allow(Skip, Cancel) flow.react(Wait) - progress['email'] = str(email) + progress['email'] = email logger.info('[%d/%d] Sending to %s', index-1, limit-1, email) clean = True error = None @@ -483,7 +483,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')): flow.react(Wait) click("div.io-ox-mail-compose-window div[data-extension-id='to'] > div.mail-input") box = locate("div.io-ox-mail-compose-window div[data-extension-id='to'] > div.mail-input input.token-input.tt-input[tabindex='0']") - box.send_keys(str(email) + Keys.ENTER) + box.send_keys(email + Keys.ENTER) if column.variables in headers and (v := cell(index, column.variables).value) is not None: clean = False @@ -502,7 +502,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')): box = locate("div.io-ox-mail-compose-window .mail-input .tokenfield .token") recipient = box.get_attribute('innerText').strip() - if recipient != str(email): + if recipient != email: logger.warning('Malformed email address detected; retrying (%d)...', attempts) continue