Fix syntax
This commit is contained in:
parent
daae9593d6
commit
abb740aa3c
1 changed files with 6 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue