forked from p15670423/monkey
Island: Remove comment about 500 HTTP status code in clear_caches.py
This commit is contained in:
parent
dfe93feb0b
commit
e9f2c9b411
|
@ -35,8 +35,6 @@ class ClearCaches(AbstractResource):
|
||||||
|
|
||||||
if ReportService.is_report_generated() or AttackReportService.is_report_generated():
|
if ReportService.is_report_generated() or AttackReportService.is_report_generated():
|
||||||
logger.error(NOT_ALL_REPORTS_DELETED)
|
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)
|
flask_restful.abort(500, error_info=NOT_ALL_REPORTS_DELETED)
|
||||||
|
|
||||||
return {"success": "true"}
|
return {"success": "true"}
|
||||||
|
|
Loading…
Reference in New Issue