Skip to content

list index out of range in _get_pandoc_urls #295

@kevalmorabia97

Description

@kevalmorabia97
Traceback (most recent call last):
  File "/tmp/runner/build-docs/lib/python3.8/site-packages/sphinx/config.py", line 347, in eval_config_file
    exec(code, namespace)
  File "/home/runner/work/<org>/<repo>/docs/source/conf.py", line 37, in <module>
    download_pandoc(
  File "/tmp/runner/build-docs/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 228, in download_pandoc
    pandoc_urls, _ = _get_pandoc_urls(version)
  File "/tmp/runner/build-docs/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 57, in _get_pandoc_urls
    version = pandoc_urls_list[0].split('/')[5]
IndexError: list index out of range

Seems like the logic to load the releases/ page has an empty list of URLs since it takes some time to load the URLs. This needs to be fixed ASAP as it breaks the use of pypandoc in all existing pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions