From d9853d716d375ce59b1be4135476f795bcb49f41 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Thu, 17 Aug 2017 15:17:35 +0000 Subject: Pesky syntax. --- roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 index 9b69b4add..d23b9aeed 100644 --- a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 +++ b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 @@ -493,7 +493,7 @@ def _is_retired_in_pdc(product, project): if DRY_RUN: print('Querying {0}'.format(pdc_url)) pdc_rv = session.get(pdc_url, timeout=30) - if not pdc_rv.ok + if not pdc_rv.ok: raise RuntimeError("Could not find %r in PDC." % project) return not pdc_rv.json()['active'] -- cgit