Skip to content

Commit

Permalink
修正B站API错误信息字段
Browse files Browse the repository at this point in the history
  • Loading branch information
xfgryujk committed Oct 17, 2020
1 parent e7d8fd0 commit 888bc89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ async def _get_room_info(room_id):
return room_id, 0

if data['code'] != 0:
logger.warning('room %d _get_room_info failed: %s', room_id, data['msg'])
logger.warning('room %d _get_room_info failed: %s', room_id, data['message'])
return room_id, 0

room_info = data['data']['room_info']
Expand All @@ -579,7 +579,7 @@ async def _get_server_host_list(cls, _room_id):
# return cls._host_server_list_cache
#
# if data['code'] != 0:
# logger.warning('room %d _get_server_host_list failed: %s', room_id, data['msg'])
# logger.warning('room %d _get_server_host_list failed: %s', room_id, data['message'])
# return cls._host_server_list_cache
#
# host_server_list = data['data']['host_list']
Expand Down
2 changes: 1 addition & 1 deletion blivedm
Submodule blivedm updated 1 files
+2 −2 blivedm.py

0 comments on commit 888bc89

Please sign in to comment.