From abb740aa3c0d21aaa4e0653c6e06f57ec18a009f Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Sat, 19 Jul 2025 18:00:22 +0200 Subject: [PATCH] Fix syntax --- test/other/test_smtp_oauth2.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/other/test_smtp_oauth2.py b/test/other/test_smtp_oauth2.py index 3a1e0082656..d46de1b3169 100755 --- a/test/other/test_smtp_oauth2.py +++ b/test/other/test_smtp_oauth2.py @@ -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()