diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index f32426d..d92f5fe 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1518,7 +1518,7 @@ def new_pull_request(session, branch_from, ) # Send notification to the CI server - if REDIS and request.project.ci_hook and PAGURE_CI \ + if REDIS and PAGURE_CI and request.project.ci_hook \ and not request.project.private: REDIS.publish('pagure.ci', json.dumps({ 'ci_type': request.project.ci_hook.ci_type,