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