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:
Mike Salvatore 2022-07-07 12:53:13 -04:00
parent d16b3e6bef
commit bd810440af
1 changed files with 1 additions and 7 deletions

View File

@ -19,12 +19,6 @@ class ClearSimulationData(AbstractResource):
Clear all data collected during the simulation
"""
Database.reset_db(reset_config=False)
try:
self._credentials_repository.remove_stolen_credentials()
except RemovalError as err:
make_response(
{"error": f"Error encountered while removing stolen credentials: {err}"}, 500
)
self._credentials_repository.remove_stolen_credentials()
return make_response({}, 200)