Skip to content

Commit

Permalink
remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jun 18, 2023
1 parent a61f686 commit 09839c9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions homeassistant/components/websocket_api/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import asyncio
from collections import deque
from collections.abc import Callable
from concurrent import futures
import datetime as dt
import logging
from typing import TYPE_CHECKING, Any, Final
Expand Down Expand Up @@ -140,11 +139,6 @@ async def _writer(self) -> None:
if debug_enabled:
debug("%s: Sending %s", self.description, coalesced_messages)
await send_str(coalesced_messages)
except futures.CancelledError as ex:
# Originally, this was just asyncio.CancelledError, but issue #9546 showed
# that futures.CancelledErrors can also occur in some situations.
debug("%s: Writer cancelled by future cancellation", self.description)
raise asyncio.CancelledError from ex
except asyncio.CancelledError:
debug("%s: Writer cancelled", self.description)
raise
Expand Down

0 comments on commit 09839c9

Please sign in to comment.