Browse Source

Fail less at binary formatted strings

master
Chris Smith 5 years ago
parent
commit
b280ee2eb7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lineandsinker/services/irccat.py

+ 1
- 1
lineandsinker/services/irccat.py View File

@@ -14,5 +14,5 @@ class IrcCat(Service):
14 14
         s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
15 15
         s.connect((self._host, self._port))
16 16
         for line in message.split("\n"):
17
-            s.sendall(bf"{self._channel} {line}\n")
17
+            s.sendall(f"{self._channel} {line}\n".encode())
18 18
         s.close()

Loading…
Cancel
Save