Skip to content

Commit

Permalink
Some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenthebuilder committed Apr 24, 2024
1 parent 8bac398 commit 6a387c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions replit_river/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def cancel_task(
background_tasks.remove(task_to_remove)
exception = task_to_remove.exception()
except (asyncio.CancelledError, ChannelClosed):
# This is expected when websocket is closed
logging.debug("Task was cancelled %r", task_to_remove)
return
except Exception:
Expand Down

0 comments on commit 6a387c5

Please sign in to comment.