Skip to content

Improve error message for missing methods details #114

@aozalevsky

Description

@aozalevsky

Missing methods details is a pretty common error:

INFO:root:Supplementary table
Traceback (most recent call last):
  File "/opt/IHMValidation/ihm_validation/ihm_validator.py", line 397, in <module>
    template_dict = report.run_supplementary_table(template_dict,
  File "/opt/IHMValidation/ihm_validation/report.py", line 397, in run_supplementary_table
    Template_Dict['method'] = utility.get_method_name(
  File "/opt/IHMValidation/ihm_validation/utility.py", line 364, in get_method_name
    datastr = '%s ' % (sample_dict['Method name'][0])
IndexError: list index out of range

The error message should be more transparent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions