Island: Don't catch Exception in POST /api/island-mode

Flask automatically traps exceptions, returns a 500, and logs a stack
trace. Since Flask will automatically return a 500, we don't need to
duplicate the functionality. Since it prints a stack trace, it provides
more useful information than catching it did.
This commit is contained in:
Mike Salvatore 2021-07-13 11:02:18 -04:00
parent a0fb6fa2b6
commit 84a78a5048
1 changed files with 0 additions and 2 deletions

View File

@ -26,5 +26,3 @@ class IslandMode(flask_restful.Resource):
return make_response({}, 400)
except ValueError:
return make_response({}, 422)
except Exception:
return make_response({}, 500)