Fixed log to be in str instead of bytes

This commit is contained in:
Celine Mercier
2019-08-29 18:26:51 +02:00
parent 4e75514bad
commit 53dcbc8ea3

View File

@ -262,7 +262,7 @@ def open_uri(uri,
if input: if input:
try: try:
file = uopen(urip.path, mode='rb') file = uopen(urip.path, mode='rb')
logger('info','Opened file: %s', urip.path) logger('info','Opened file: %s', tostr(urip.path))
except Exception as e: # TODO discuss: if can't open file, return the character string itself except Exception as e: # TODO discuss: if can't open file, return the character string itself
file = tobytes(uri) file = tobytes(uri)
iseq = urib iseq = urib