Signed-off-by: Abhijeet Kasurde akasurde@redhat.com Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr
rebased
Why duplicate this function from pagure/api/user.py? They do seem to raise different exceptions, but it seems that they are both essentially raising a form of 404. I'm not familiar enough with Pagure to know why there are two ways to send 404s…
pagure/api/user.py
LGTM.
The API is using some custom error to return JSON even upon exception while the UI uses the more classic flask.abort() which is then processed by a @APP.errorhandler(404) returning a "nice" 404 error page (html).
flask.abort()
@APP.errorhandler(404)
Thanks for the review! :)
Pull-Request has been merged by pingou
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr