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