uruwhy commented on code in PR #3246:
URL: https://github.com/apache/caldera/pull/3246#discussion_r3281682223
##########
app/api/rest_api.py:
##########
@@ -137,9 +137,9 @@ async def download_file(self, request):
('FILENAME', display_name)])
return web.Response(body=content, headers=headers)
except FileNotFoundError:
- return web.HTTPNotFound(body='File not found')
+ raise web.HTTPNotFound(text='File not found')
except Exception as e:
- return web.HTTPNotFound(body=str(e))
+ raise web.HTTPNotFound(text=str(e))
Review Comment:
```suggestion
return web.HTTPNotFound(text=str(e))
```
revert for now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]