From 020c7db1ae21201e493b2b02bedc8e7855fa20da Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 14 Jan 2018 23:16:25 +0100 Subject: Fix binary opening --- poezio/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/logger.py b/poezio/logger.py index 6ce9ef90..1ebd5cf4 100644 --- a/poezio/logger.py +++ b/poezio/logger.py @@ -150,7 +150,7 @@ class Logger(object): self._check_and_create_log_dir(jid, open_fd=False) try: - fd = open(os.path.join(log_dir, jid), 'rb', encoding='utf-8') + fd = open(os.path.join(log_dir, jid), 'rb') except FileNotFoundError: log.info( 'Non-existing log file (%s)', -- cgit v1.2.3