Skip to content

Commit

Permalink
feat(danmaku): try to resolve TimeoutError
Browse files Browse the repository at this point in the history
Signed-off-by: hldh214 <[email protected]>
  • Loading branch information
hldh214 committed Jan 10, 2024
1 parent 3f91c0e commit a6e84d9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions recorder/danmaku/douyin/dylr.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import gzip
import logging
import time
import traceback

import pymongo.errors
import websockets
Expand Down Expand Up @@ -94,9 +93,8 @@ async def subscribe(room_id):
):
try:
await consumer_handler(websocket, room_id)
except websockets.WebSocketException:
logging.warning('WebSocketException excepted: ' + traceback.format_exc())
raise
except websockets.WebSocketException as e:
logging.warning('WebSocketException excepted: ' + str(e))


async def _main(room_id, interval):
Expand Down

0 comments on commit a6e84d9

Please sign in to comment.