Skip to content

Commit

Permalink
raise exception of das output error
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 31, 2018
1 parent 8a3d92a commit 91c9d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion das-utils/das_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def run_das_client(outfile, query, override, dasclient="das_client", threshold=9
jdata = json.loads(out)
except Exception, e:
print " Failed to load josn output:%s:%s" %(sha,out)
return False
raise e
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 91c9d45

Please sign in to comment.