fix: removed redundant type conversion calls

This commit is contained in:
2026-08-18 14:21:03 +08:00
parent b8d26ac879
commit 6018658458
+3 -3
View File
@@ -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