Skip to content

Commit

Permalink
fixup! Handle disconnects better in old ritz code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Jun 6, 2024
1 parent b05fe11 commit 08521b9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/zinolib/ritz.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ def _request(self, command: bytes, recv_buffer=4096, **_):
% (repr(command), repr(buffer))
) from e
logger.debug("recv: %s" % data.__repr__())
if not data:
raise NotConnectedError(f'Lost connection to server')

buffer += data.decode("UTF-8", errors="windows_codepage_cp1252")

Expand Down

0 comments on commit 08521b9

Please sign in to comment.