mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-28 09:59:40 -04:00
debug
This commit is contained in:
@@ -90,7 +90,11 @@ def get_organization_by_domain():
|
||||
@organization_blueprint.route("", methods=["POST"])
|
||||
def create_organization():
|
||||
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)
|
||||
dao_create_organization(organization)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user