mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
can't rely on stdout to handle unicode
This commit is contained in:
parent
6f830a994d
commit
320b56ae43
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ def allroutes(pathin):
|
||||||
if os.path.exists(fullpath):
|
if os.path.exists(fullpath):
|
||||||
return flask.send_file(fullpath, mimetype=mimetype, conditional=True)
|
return flask.send_file(fullpath, mimetype=mimetype, conditional=True)
|
||||||
else:
|
else:
|
||||||
print(f"Not found: {pathin}")
|
print(f"Not found: {ascii(pathin)}")
|
||||||
return flask.make_response(f"Invalid path: {pathin}", HTTPStatus.NOT_FOUND,)
|
return flask.make_response(f"Invalid path: {pathin}", HTTPStatus.NOT_FOUND,)
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
|
Loading…
Reference in a new issue