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 when getting extra details for section #108

Closed
maxdudek opened this issue Jan 26, 2019 · 1 comment
Closed

IndexError when getting extra details for section #108

maxdudek opened this issue Jan 26, 2019 · 1 comment
Assignees
Labels

Comments

@maxdudek
Copy link

The function at line 230 of course.py could throw an IndexError if the parameter text does not contain the string ' :'

The function should look like:

def __extract_data_past_colon(text: str) -> str:
        if ': ' in text:
            return text.split(': ')[1]
        else:
            return text

I was getting this issue for some reason and this fixed it

@azharichenko azharichenko self-assigned this Jan 26, 2019
@azharichenko
Copy link
Member

So the issue is to do with scraping through multiple class attributes, for what it seems. I'd don't believe that is the full solution, but was on the right track. I'm currently investigating it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants