Fix syntax

This commit is contained in:
ldestailleur
2025-07-19 18:00:22 +02:00
parent daae9593d6
commit 85f49c2272
2 changed files with 7 additions and 6 deletions

1
test/other/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/__pycache__/

View File

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