Skip to content

Commit

Permalink
Not important changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Dec 30, 2020
1 parent 5877548 commit 6a70391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cwl_airflow/components/test/conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def do_POST(self):
int(self.headers["Content-Length"])
).decode("UTF-8")
)["payload"]
if "results" in payload or payload.get("error", None) != "": # "results" can be {}, so we should check only if key is present, but not value
if "results" in payload or payload["error"] != "": # "results" can be {}, so we should check only if key is present, but not value
self.server.results_queue.put({
"run_id": payload["run_id"],
"dag_id": payload["dag_id"],
"results": payload.get("results", payload.get("error", None))
"results": payload.get("results", payload["error"])
})


Expand Down

0 comments on commit 6a70391

Please sign in to comment.