Pretty print the error object.
This commit is contained in:
parent
918489fb1f
commit
555eb66c9b
1 changed files with 3 additions and 1 deletions
|
@ -2205,6 +2205,8 @@ def matrix_handle_message(
|
||||||
message = extra_data["message"]
|
message = extra_data["message"]
|
||||||
room_id = extra_data["room_id"]
|
room_id = extra_data["room_id"]
|
||||||
date = int(time.time())
|
date = int(time.time())
|
||||||
|
# TODO the event_id can be missing if sending has failed for
|
||||||
|
# some reason
|
||||||
event_id = response["event_id"]
|
event_id = response["event_id"]
|
||||||
|
|
||||||
# This message will be part of the next sync, we already printed it out
|
# This message will be part of the next sync, we already printed it out
|
||||||
|
@ -2330,7 +2332,7 @@ def receive_cb(server_name, file_descriptor):
|
||||||
message = server.receive_queue.popleft()
|
message = server.receive_queue.popleft()
|
||||||
server.send_queue.appendleft(message)
|
server.send_queue.appendleft(message)
|
||||||
|
|
||||||
server_buffer_prnt(server, error)
|
server_buffer_prnt(server, pprint.pformat(error))
|
||||||
return W.WEECHAT_RC_OK
|
return W.WEECHAT_RC_OK
|
||||||
|
|
||||||
if not data:
|
if not data:
|
||||||
|
|
Loading…
Add table
Reference in a new issue