mirror of https://github.com/WikiTeam/wikiteam
Circumvent API exception when trying to use index.php
$ python dumpgenerator.py --xml --index=http://meritbadge.org/wiki/index.php fails on at least one MediaWiki 1.12 wiki: Trying generating a new dump into a new directory... Loading page titles from namespaces = all Excluding titles from namespaces = None Traceback (most recent call last): File "dumpgenerator.py", line 2211, in <module> main() File "dumpgenerator.py", line 2203, in main createNewDump(config=config, other=other) File "dumpgenerator.py", line 1766, in createNewDump getPageTitles(config=config, session=other['session']) File "dumpgenerator.py", line 400, in getPageTitles test = getJSON(r) File "dumpgenerator.py", line 1708, in getJSON return request.json() File "/usr/lib/python2.7/site-packages/requests/models.py", line 892, in json return complexjson.loads(self.text, **kwargs) File "/usr/lib64/python2.7/site-packages/simplejson/__init__.py", line 516, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 374, in decode obj, end = self.raw_decode(s) File "/usr/lib64/python2.7/site-packages/simplejson/decoder.py", line 404, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)pull/319/head
parent
d4f0869ecc
commit
27cbdfd302
Loading…
Reference in New Issue