Le 12/09/2014 13:49, Željko Filipin a écrit : > On Wed, Sep 10, 2014 at 8:53 PM, S Page > <[email protected] > <mailto:[email protected]>> wrote: > > To avoid wasting time in misdiagnosis, instead of mw-api-siteinfo.py > reporting JSON parsing errors from > > siteinfo = json.loads(response.content) > > it should earlier fail with "ERROR 404 response > fromhttp://en.wikipedia.beta.wmflabs.org/w/api.php > <http://en.wikipedia.beta.wmflabs.org/w/api.php> , aggghhh!" > > > This is tracked in bug 70695[1].
Solved by S. The python script will now raise an exception whenever there is a dubious status code thanks to a one line fix: + response.raise_for_status() -- Antoine "hashar" Musso _______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
