can't rely on stdout to handle unicode

This commit is contained in:
Damien Elmes 2020-07-15 09:36:29 +10:00
parent 6f830a994d
commit 320b56ae43

View file

@ -149,7 +149,7 @@ def allroutes(pathin):
if os.path.exists(fullpath):
return flask.send_file(fullpath, mimetype=mimetype, conditional=True)
else:
print(f"Not found: {pathin}")
print(f"Not found: {ascii(pathin)}")
return flask.make_response(f"Invalid path: {pathin}", HTTPStatus.NOT_FOUND,)
except Exception as error: