From 9783fe6c04dfcd5e46267355c8e2961bfdc48754 Mon Sep 17 00:00:00 2001 From: Lubos Kocman Date: Mon, 26 Sep 2016 14:34:10 +0200 Subject: [PATCH] Fixed hasattr --- rida/messaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rida/messaging.py b/rida/messaging.py index d8bd787a..a2680dc6 100644 --- a/rida/messaging.py +++ b/rida/messaging.py @@ -59,7 +59,7 @@ class BaseMessage(object): msg_obj = None properties = None body = None - if hasattr('properties'): + if hasattr(msg, 'properties'): properties = json.loads(msg.properties, encoding='utf8') if not ((properties.get('service') == 'koji' or properties.get('service') == 'rida')): log.debug("Skipping msg: %s" % msg)