Skip to content

Commit

Permalink
May as well use sendall
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpeta committed May 31, 2024
1 parent 67a2dd4 commit 17633f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/irc_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _send(self, *args: str, text=None):

try:
PchumLog.debug("Sending: %s", command)
self.socket.send(outgoing_bytes)
self.socket.sendall(outgoing_bytes) # sendall will fix this (no)
except OSError:
PchumLog.exception("Error while sending: '%s'", command.strip())
self.socket.close()
Expand Down

0 comments on commit 17633f7

Please sign in to comment.