wikiquote icon indicating copy to clipboard operation
wikiquote copied to clipboard

quote_of_the_day errors with some languages : best way to fix ?

Open ikario404 opened this issue 1 year ago • 1 comments

Hi

I recently noticed an error throwing from quote_of_the_day() function with 'param lang=fr'.

I also watched french webpage for wikiquote and it havent the ID "mf-qotd" in it. I am not totally sure what could be the best fix regarding the code : better for an exception or is there a more generic id or xpath formula to catch it ?

Based on supported language I have also noted that error for : fr, eu, pl, pt

Tell me if you need more details but I guess it is easily reproductible

thanks for your work I love wikiquote on some of my shells :)

$ wikiquote.quote_of_the_day(lang="fr")
MissingQOTDException: Unable to retrieve quote of the day. This is probably due to a recent change in Wikiquote's main page page layout. Please try again later. If the problem persists, open an issue at: https://github.com/federicotdn/wikiquote
``

ikario404 avatar Feb 23 '24 14:02 ikario404