uruwhy commented on code in PR #3246:
URL: https://github.com/apache/caldera/pull/3246#discussion_r3281680656


##########
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')

Review Comment:
   ```suggestion
               return web.HTTPNotFound(text='File not found')
   ```
   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]

Reply via email to