aboutsummaryrefslogtreecommitdiff
path: root/wmfphablib/phabdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'wmfphablib/phabdb.py')
-rwxr-xr-xwmfphablib/phabdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wmfphablib/phabdb.py b/wmfphablib/phabdb.py
index 8cc1d8c..999e62f 100755
--- a/wmfphablib/phabdb.py
+++ b/wmfphablib/phabdb.py
@@ -82,7 +82,8 @@ def get_storypoints(taskPHID):
WHERE indexKey=%s AND objectPHID=%s",
('yERhvoZPNPtM', taskPHID), limit=None)
p.close()
- return _
+ if _ is not None and len(_[0]) > 0:
+ return _[0]
def get_edgebysrc(src):
p = phdb(db='phabricator_maniphest',