forked from p34709852/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
|
||||
"""
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue