From f044e81ede2bf2498a4a88719623b5247c5714e7 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Nov 23 2016 17:51:00 +0000 Subject: Merge #217 `Maintain non-strict behavior in getTaskInfo` --- 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