Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix get_dataset_size for datasets with null file_size column
Fixes: ``` Oct 13 14:29:40 galaxy-vgp galaxyctl[2536822]: File "/cvmfs/main.galaxyproject.org/venv/lib/python3.8/site-packages/tpv/core/helpers.py", line 16, in get_dataset_size Oct 13 14:29:40 galaxy-vgp galaxyctl[2536822]: return float(dataset.file_size) Oct 13 14:29:40 galaxy-vgp galaxyctl[2536822]: TypeError: float() argument must be a string or a number, not 'NoneType' ``` There's an underlying bug as well where the job state is final but the file size is unset, but I would always consider it better to use one abstraction level above the database column.
- Loading branch information