From ad521d5eb255c90c85877b268827b15265db1e7c Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Nov 23 2016 17:26:52 +0000 Subject: Maintain non-strict behavior in getTaskInfo Fixes: #216 https://pagure.io/koji/issue/216 --- diff --git a/hub/kojihub.py b/hub/kojihub.py index 3ad9e19..51e41a2 100644 --- a/hub/kojihub.py +++ b/hub/kojihub.py @@ -428,7 +428,7 @@ class Task(object): the request will be decoded and included in the dictionary.""" q = """SELECT %s FROM task WHERE id = %%(id)i""" % ','.join([f[0] for f in self.fields]) result = _singleRow(q, vars(self), [f[1] for f in self.fields], strict) - if request: + if result and request: result['request'] = self.getRequest() return result