加入else
This commit is contained in:
parent
12da2b4414
commit
a2cc22baa2
3
CS3.1.py
3
CS3.1.py
@ -143,7 +143,8 @@ def handle_socket_message(data, addr, conn):
|
||||
}
|
||||
broadcast_message(message)
|
||||
#return {"type": "chat", "status": "success"}
|
||||
return {"type": "chat", "status": "error", "message": "Not logged in"}
|
||||
else :
|
||||
return {"type": "chat", "status": "error", "message": "Not logged in"}
|
||||
except Exception as e:
|
||||
return {"status": "error", "message": str(e)}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user