Skip to content

Disprot markup generating an error #4

@AlasdairGray

Description

@AlasdairGray

Describe the bug
Error returned when trying to validate a Disprot page

To Reproduce
Steps to reproduce the behavior:

  1. Enter the URL https://disprot.org/DP01128
  2. Press enter
  3. See error
TypeError: 'IndexError' object is not subscriptable
Traceback:
File "/usr/local/lib/python3.10/site-packages/streamlit/scriptrunner/script_runner.py", line 443, in _run_script
    exec(code, module.__dict__)
File "/validator/website_st.py", line 102, in <module>
    markdown_text = report.generate_report_summary(result)
File "/validator/web/report.py", line 10, in generate_report_summary
    ##### {fmt.header("Against profile:")}  {result['Profile Name']} {result['Profile Version']}

Expected behavior
Validation report

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions