diff --git a/pinecrypt/server/api/request.py b/pinecrypt/server/api/request.py index b831cd0..fe84d42 100644 --- a/pinecrypt/server/api/request.py +++ b/pinecrypt/server/api/request.py @@ -140,7 +140,7 @@ class RequestListResource(object): logger.info("Signed %s as %s is whitelisted for autosign", common_name, req.context["remote"]["addr"]) return - except EnvironmentError: + except errors.RequestExists: logger.info("Autosign for %s from %s failed, signed certificate already exists", common_name, req.context["remote"]["addr"]) reasons.append("autosign failed, signed certificate already exists")