diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index 05bbe39..fa6d06a 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -267,7 +267,7 @@ def create_project( templ, ignore_existing_repo, ) - except pagure.exceptions.RepoExistsException: + except Exception: session.delete(project) session.commit() raise