forked from p15670423/monkey
Island: Remove unnecessary error handling
Flask automatically catches exceptions and returns a 500 response, so there's no need to add extra code to do this.
This commit is contained in:
parent
d16b3e6bef
commit
bd810440af
|
@ -19,12 +19,6 @@ class ClearSimulationData(AbstractResource):
|
||||||
Clear all data collected during the simulation
|
Clear all data collected during the simulation
|
||||||
"""
|
"""
|
||||||
Database.reset_db(reset_config=False)
|
Database.reset_db(reset_config=False)
|
||||||
|
self._credentials_repository.remove_stolen_credentials()
|
||||||
try:
|
|
||||||
self._credentials_repository.remove_stolen_credentials()
|
|
||||||
except RemovalError as err:
|
|
||||||
make_response(
|
|
||||||
{"error": f"Error encountered while removing stolen credentials: {err}"}, 500
|
|
||||||
)
|
|
||||||
|
|
||||||
return make_response({}, 200)
|
return make_response({}, 200)
|
||||||
|
|
Loading…
Reference in New Issue