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

IndexError: list index out of range #3

Open
ad-si opened this issue Oct 22, 2020 · 0 comments
Open

IndexError: list index out of range #3

ad-si opened this issue Oct 22, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ad-si
Copy link

ad-si commented Oct 22, 2020

$ python3 --version
Python 3.9.0

$ fileinfo py
Traceback (most recent call last):
  File "/Users/adrian/Library/Python/3.9/bin/fileinfo", line 71, in <module>
    main()
  File "/Users/adrian/Library/Python/3.9/bin/fileinfo", line 63, in main
    file_type = get_file_type(html)
  File "/Users/adrian/Library/Python/3.9/bin/fileinfo", line 18, in get_file_type
    return re.findall('<span itemprop="name">(.*?)</span></h2>', html)[0]
IndexError: list index out of range
@sdushantha sdushantha added the bug Something isn't working label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants