From 2cd657cec6fb8d18a6663ecef021cfb03cac47b4 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Tue, 25 Jun 2019 16:18:48 +0100 Subject: [PATCH] Raise given exception --- app/user/rest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/user/rest.py b/app/user/rest.py index 444dac914..d4e140fb9 100644 --- a/app/user/rest.py +++ b/app/user/rest.py @@ -68,7 +68,7 @@ def handle_integrity_error(exc): current_app.logger.exception('Check constraint ck_users_mobile_or_email_auth triggered') return jsonify(result='error', message='Mobile number must be set if auth_type is set to sms_auth'), 400 - raise + raise exc @user_blueprint.route('', methods=['POST'])