Fix binary opening
This commit is contained in:
parent
75efa4eaaf
commit
020c7db1ae
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class Logger(object):
|
||||||
self._check_and_create_log_dir(jid, open_fd=False)
|
self._check_and_create_log_dir(jid, open_fd=False)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fd = open(os.path.join(log_dir, jid), 'rb', encoding='utf-8')
|
fd = open(os.path.join(log_dir, jid), 'rb')
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
log.info(
|
log.info(
|
||||||
'Non-existing log file (%s)',
|
'Non-existing log file (%s)',
|
||||||
|
|
Loading…
Reference in a new issue