Fix syntax

This commit is contained in:
ldestailleur 2025-07-19 18:00:22 +02:00
parent daae9593d6
commit abb740aa3c

View file

@ -23,14 +23,14 @@ server.ehlo()
try:
print (auth_string)
response = server.docmd("AUTH", "XOAUTH2 " + auth_string)
response = server.docmd("AUTH", "XOAUTH2 " + auth_string)
# Check authentication
if response[0] != 235:
raise Exception(f"Authentication fails : {response[1].decode()}")
# Check authentication
if response[0] != 235:
raise Exception(f"Authentication fails : {response[1].decode()}")
except Exception as e:
print (f"Error : {e}")
print (f"Error : {e}")
finally:
server.quit()
server.quit()