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

Quote of the Day getting exception #5

Closed
a-vilmin opened this issue Mar 16, 2016 · 5 comments
Closed

Quote of the Day getting exception #5

a-vilmin opened this issue Mar 16, 2016 · 5 comments

Comments

@a-vilmin
Copy link

The tuple is raising an exception if the author isn't parsed correctly into the tuple.

@federicotdn
Copy link
Owner

Could you share the exact exception message you got? Also, were you using the English or French version?

@a-vilmin
Copy link
Author

I'm not getting one today, but it looked like if the quote of the day didn't have an author then the function would raise an exception when you would try accessing raw_data[1]. It was line 158 that raised it yesterday in the english version. It works today and I'm not sure how often it'll come up.

@federicotdn
Copy link
Owner

From what I'm seeing, all recent quotes have had an author attributed (https://en.wikiquote.org/wiki/Wikiquote:Quote_of_the_day/March_2016), it may have been something like the page's HTML layout changing for one day (though this is unlikely). If you can, next time you get the exception try entering https://en.wikiquote.org/wiki/Main_Page and saving the entire page's HTML to a file, so that I can have a look.

@a-vilmin
Copy link
Author

No problem. Sorry I forgot to write it down, I'm kinda new to the whole using github thing. Thanks for making this btw! I'm using it to teach a class for high schoolers and its a great interface.

@federicotdn
Copy link
Owner

👍

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

No branches or pull requests

2 participants