From e9f2c9b411cb246bf1e1769a30593c616d3493b1 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 27 May 2022 18:53:25 +0530 Subject: [PATCH] Island: Remove comment about 500 HTTP status code in clear_caches.py --- monkey/monkey_island/cc/resources/blackbox/clear_caches.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/blackbox/clear_caches.py b/monkey/monkey_island/cc/resources/blackbox/clear_caches.py index ee86b1275..af650655b 100644 --- a/monkey/monkey_island/cc/resources/blackbox/clear_caches.py +++ b/monkey/monkey_island/cc/resources/blackbox/clear_caches.py @@ -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"}