forked from p15670423/monkey
Island: Remove logging TODOs for pba_file upload/download
Resources should log the errors
This commit is contained in:
parent
cd34cd5eae
commit
44795531b8
|
@ -26,7 +26,6 @@ class PBAFileDownload(AbstractResource):
|
|||
# `send_file()` handles the closing of the open file.
|
||||
return send_file(file, mimetype="application/octet-stream")
|
||||
except repository.FileNotFoundError as err:
|
||||
# TODO: Do we need to log? Or will flask handle it when we `make_response()`?
|
||||
logger.error(str(err))
|
||||
return make_response({"error": str(err)}, 404)
|
||||
|
||||
|
|
|
@ -59,7 +59,6 @@ class FileUpload(AbstractResource):
|
|||
# `send_file()` handles the closing of the open file.
|
||||
return send_file(file, mimetype="application/octet-stream")
|
||||
except repository.FileNotFoundError as err:
|
||||
# TODO: Do we need to log? Or will flask handle it when we `make_response()`?
|
||||
logger.error(str(err))
|
||||
return make_response({"error": str(err)}, 404)
|
||||
|
||||
|
|
Loading…
Reference in New Issue