From ed828caa05fb647747e63526eb05981d5aa95a32 Mon Sep 17 00:00:00 2001 From: Tim Flink Date: May 29 2017 10:02:43 +0000 Subject: changing logic order to avoid error with no ci. Fixes #2312 --- 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,