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,8 +220,10 @@ class JobSubmitter(Base):
params[k] = v
# JSONify metadata
params['job_metadata'] = _metadata(params['job_metadata'])
params['file_metadata'] = _metadata(params['file_metadata'])
if params['job_metadata'] is not None:
params['job_metadata'] = _metadata(params['job_metadata'])
if params['file_metadata'] is not None:
params['file_metadata'] = _metadata(params['file_metadata'])
return params
def _prepare_options(self):
......
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