BrokenSegue added a comment.
yeah this works better. now it throws an exception on server timeouts. but it
isn't throwing exceptions on malformed SPARQL. e.g.
>from pywikibot import pagegenerators as pg
>generator = pg.WikidataSPARQLPageGenerator("select blah")
WARNING: Http response status 400
TASK DETAIL
https://phabricator.wikimedia.org/T320590
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, BrokenSegue
Cc: Smalyshev, Xqt, Aklapper, BrokenSegue, pywikibot-bugs-list, Jersione,
Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, JohnsonLee01,
Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, Khutuck, Zkhalido,
Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, Gaboe420, Giuliamocci,
Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, Mdupont, JJMC89,
Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]