Fixed log to be in str instead of bytes
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user