Skip to content

Commit

Permalink
print das error
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 31, 2018
1 parent 673d803 commit 8a3d92a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion das-utils/das_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9
if err:
print " ",sha,out
return False
jdata = json.loads(out)
try:
jdata = json.loads(out)
except Exception, e:
print " Failed to load josn output:%s:%s" %(sha,out)
return False
if (not "status" in jdata) or (jdata['status'] != 'ok') or (not "data" in jdata):
print "Failed: %s %s\n %s" % (sha, query, out)
return False
Expand Down

0 comments on commit 8a3d92a

Please sign in to comment.