This seems to indicate you have no # at the start of the room. So you didn’t join a IRC room/channel.
Since your Log output didn’t respond with a JOIN. So you tried to join a room that doesn’t exist
Try
self.irc.send(bytes(f"JOIN #{channel}\n", "UTF-8"))
Additionally make sure the channel is ALL lowercase (ie the channels username NOT their display name)