From 7afe0734d27a0bff9dc4b0ccfcec535c1a6903e6 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 22 2015 08:49:25 +0000 Subject: Add a new API error when no user is found for a specific criteria --- diff --git a/pagure/api/__init__.py b/pagure/api/__init__.py index d212b60..ad6f5cb 100644 --- a/pagure/api/__init__.py +++ b/pagure/api/__init__.py @@ -45,6 +45,7 @@ class APIERROR(enum.Enum): 'necessary to be merged' ENOASSIG = 'Only the assignee can merge this review' ENOTASSIG = 'This request must be assigned to be merged' + ENOUSER = 'No such user found' def check_api_acls(acls, optional=False):