From 09358cce9b6417f962c888d1350d90e8dc8e81c5 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Wed, 31 Jan 2018 17:58:43 +0100 Subject: [PATCH] fail is das output is not in json format --- das-utils/das_cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/das-utils/das_cache.py b/das-utils/das_cache.py index 47b754325c53..5568c6b2d128 100755 --- a/das-utils/das_cache.py +++ b/das-utils/das_cache.py @@ -31,7 +31,7 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9 das_cmd = "%s --format=json --limit=%s --query '%s%s' %s --threshold=%s" % (dasclient, limit, query, field_filter, retry_str, threshold) print " Running: ",sha,das_cmd print " Fields:",sha,fields - err, out = getstatusoutput(das_cmd + " | grep -v '^WARNING: '") + err, out = getstatusoutput(das_cmd) if err: print " ",sha,out return False