mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-25 08:43:55 -04:00
debug
This commit is contained in:
@@ -90,7 +90,11 @@ def get_organization_by_domain():
|
|||||||
@organization_blueprint.route("", methods=["POST"])
|
@organization_blueprint.route("", methods=["POST"])
|
||||||
def create_organization():
|
def create_organization():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
validate(data, post_create_organization_schema)
|
try:
|
||||||
|
validate(data, post_create_organization_schema)
|
||||||
|
except Exception:
|
||||||
|
current_app.logger.exception("Validation error creating organization")
|
||||||
|
return jsonify({"Error": "Validation error"}), 400
|
||||||
organization = Organization(**data)
|
organization = Organization(**data)
|
||||||
dao_create_organization(organization)
|
dao_create_organization(organization)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user