no need to use executor

This commit is contained in:
2022-12-09 11:01:22 +01:00
parent bdb250f03b
commit 1bd8435163
+1 -1
View File
@@ -191,7 +191,7 @@ def read_mails():
mail_reader = MailReader(mail.mail, mail.password)
executor.submit(mail_reader.read_emails, mails_messages)
with ThreadPoolExecutor(max_workers=10) as executor:
# with ThreadPoolExecutor(max_workers=10) as executor:
for mail in mails_messages:
match = re.search(VALIDATION_URL_REGEX, mail.body)
if match: