From 68e7e1121cb65784581391e476dbf711dc13b18f Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 02 2015 10:28:55 +0000 Subject: If the project is just its name to need to search for web-hooks --- diff --git a/pagure/lib/notify.py b/pagure/lib/notify.py index 4afea3c..9330e29 100644 --- a/pagure/lib/notify.py +++ b/pagure/lib/notify.py @@ -53,7 +53,8 @@ def log(project, topic, msg): fedmsg_publish(topic, msg) # Send web-hooks notification - if project.settings.get('Web-hooks'): # pragma: no cover + if not isinstance(project, basestring) \ + and project.settings.get('Web-hooks'): # pragma: no cover global _i _i += 1 year = datetime.datetime.now().year