rm broken response field
This commit is contained in:
parent
62360ff390
commit
c1e67fc512
2
auth.py
2
auth.py
|
@ -47,7 +47,7 @@ def create_zulip_user(handle):
|
||||||
response = zulip_client.create_user(payload)
|
response = zulip_client.create_user(payload)
|
||||||
|
|
||||||
if response["result"] == "success":
|
if response["result"] == "success":
|
||||||
print(f"Zulip user ID: {response.user_id} created for handle: {handle}")
|
print(f"Zulip user created for handle: {handle}")
|
||||||
return True
|
return True
|
||||||
elif response["result"] == "error" and response["msg"] == f"Email '{handle}' already in use":
|
elif response["result"] == "error" and response["msg"] == f"Email '{handle}' already in use":
|
||||||
print(response["msg"] + ", this is okay.")
|
print(response["msg"] + ", this is okay.")
|
||||||
|
|
Loading…
Reference in New Issue