Commit 1ef56c91 authored by Mihai Patrascoiu's avatar Mihai Patrascoiu
Browse files

Only try to JSON-ify job metadata and file metadata if not None in the FTS client

parent 103fe48d
Pipeline #2246524 failed with stage
in 28 seconds
...@@ -220,7 +220,9 @@ class JobSubmitter(Base): ...@@ -220,7 +220,9 @@ class JobSubmitter(Base):
params[k] = v params[k] = v
# JSONify metadata # JSONify metadata
if params['job_metadata'] is not None:
params['job_metadata'] = _metadata(params['job_metadata']) params['job_metadata'] = _metadata(params['job_metadata'])
if params['file_metadata'] is not None:
params['file_metadata'] = _metadata(params['file_metadata']) params['file_metadata'] = _metadata(params['file_metadata'])
return params return params
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment