Island: Remove comment about 500 HTTP status code in clear_caches.py

This commit is contained in:
Shreya Malviya 2022-05-27 18:53:25 +05:30
parent dfe93feb0b
commit e9f2c9b411
1 changed files with 0 additions and 2 deletions

View File

@ -35,8 +35,6 @@ class ClearCaches(AbstractResource):
if ReportService.is_report_generated() or AttackReportService.is_report_generated():
logger.error(NOT_ALL_REPORTS_DELETED)
# API Spec: Why is this 500? 500 should be returned in case an exception occurs on the
# server. 40x makes more sense.
flask_restful.abort(500, error_info=NOT_ALL_REPORTS_DELETED)
return {"success": "true"}