mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Fix syntax
This commit is contained in:
1
test/other/.gitignore
vendored
Normal file
1
test/other/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/__pycache__/
|
||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user