Skip to content

Commit 503976f

Browse files
committed
fix: add clause to parse local json with no 'file://' prefix
1 parent 6bd96dd commit 503976f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wes_client/util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def build_wes_request(workflow_file, json_path, attachments=None):
112112
wf_params = modify_jsonyaml_paths(json_path)
113113
else:
114114
wf_params = json_path
115+
with open(json_path) as f:
116+
wf_params = json.dumps(json.load(f))
117+
115118
wf_version, wf_type = wf_info(workflow_file)
116119

117120
parts = [("workflow_params", wf_params),

0 commit comments

Comments
 (0)