Skip to content

Commit

Permalink
simpleirc: Fix UnicodeEncodeError in simpleirc
Browse files Browse the repository at this point in the history
  • Loading branch information
jpentland committed Oct 28, 2021
1 parent 394d1ef commit 2f4ea95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simpleirc.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def run(self):
else:
self.log.log(string)

except UnicodeEncodeError:
self.log.log("WARNING: UnicodeEncodeError when trying to read chat message")

except Exception as error:
self.log.log_exception(error)
self.commandQueue.put((time.time(), None, error.args))
Expand Down

0 comments on commit 2f4ea95

Please # to comment.