Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid json decode error if validation output josn is empty #268

Open
jdhayhurst opened this issue Jul 19, 2023 · 1 comment
Open

Avoid json decode error if validation output josn is empty #268

jdhayhurst opened this issue Jul 19, 2023 · 1 comment

Comments

@jdhayhurst
Copy link
Collaborator

It is possible for the json output file (from the validation process) to have not been written before the job is terminated by the LSF/Nextflow. When evaluating these json outputs (

results["validationList"].append(json.load(f))
) if the json is empty, it throws an error:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

This causes the validation to hang, so we should write something to handle (ignore) this error.

@jdhayhurst
Copy link
Collaborator Author

this is an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant