Fixed log to be in str instead of bytes
This commit is contained in:
@ -262,7 +262,7 @@ def open_uri(uri,
|
||||
if input:
|
||||
try:
|
||||
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
|
||||
file = tobytes(uri)
|
||||
iseq = urib
|
||||
|
Reference in New Issue
Block a user