From a9f19321f3e89e360e40f98a2b28a5117b51f728 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 15 2017 15:43:11 +0000 Subject: Use the path variable to avoid returning None/foo when creating a new project --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index be0ae3d..9211850 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1299,8 +1299,8 @@ def new_project(session, user, name, blacklist, allowed_prefix, repo = pagure.lib.get_project(session, name, namespace=namespace) if repo: raise pagure.exceptions.RepoExistsException( - 'The project repo "%s/%s" already exists in the database' % ( - namespace, name) + 'The project repo "%s" already exists in the database' % ( + path) ) project = model.Project(