From 3a70728e429702a6fa2c3cfa6853a655fc87859a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 02 2018 09:36:52 +0000 Subject: Remove never used code Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/api/issue.py b/pagure/api/issue.py index 7a11a89..c699ab4 100644 --- a/pagure/api/issue.py +++ b/pagure/api/issue.py @@ -1083,10 +1083,6 @@ def api_assign_issue(repo, issueid, username=None, namespace=None): _log.exception(err) raise pagure.exceptions.APIError(400, error_code=APIERROR.EDBERROR) - else: - raise pagure.exceptions.APIError( - 400, error_code=APIERROR.EINVALIDREQ, errors=form.errors) - jsonout = flask.jsonify(output) return jsonout @@ -1166,10 +1162,6 @@ def api_subscribe_issue(repo, issueid, username=None, namespace=None): _log.exception(err) raise pagure.exceptions.APIError(400, error_code=APIERROR.EDBERROR) - else: - raise pagure.exceptions.APIError( - 400, error_code=APIERROR.EINVALIDREQ, errors=form.errors) - jsonout = flask.jsonify(output) return jsonout