Skip to content

Commit c15241e

Browse files
committed
Remove unnecessary check, EOF is detected in the reader.
1 parent 6a36b35 commit c15241e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

redis/asyncio/connection.py

-2
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ def _read_response(
274274
self, disable_decoding: bool = False
275275
) -> Union[EncodableT, ResponseError, None]:
276276
raw = self._readline()
277-
if not raw:
278-
raise ConnectionError(SERVER_CLOSED_CONNECTION_ERROR)
279277
response: Any
280278
byte, response = raw[:1], raw[1:]
281279

0 commit comments

Comments
 (0)