-
Notifications
You must be signed in to change notification settings - Fork 35
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
Comments
Could you share the exact exception message you got? Also, were you using the English or French version? |
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. |
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. |
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. |
👍 |
The tuple is raising an exception if the author isn't parsed correctly into the tuple.
The text was updated successfully, but these errors were encountered: