mirror of https://github.com/WikiTeam/wikiteam
Catch missing titles file and JSON response
Traceback (most recent call last): File "dumpgenerator.py", line 2214, in <module> print 'Trying to use path "%s"...' % (config['path']) File "dumpgenerator.py", line 2210, in main elif reply.lower() in ['no', 'n']: File "dumpgenerator.py", line 1977, in saveSiteInfo File "dumpgenerator.py", line 1711, in getJSON return False 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) Or if for instance the directory was named compared to the saved config: Resuming previous dump process... Traceback (most recent call last): File "./dumpgenerator.py", line 2238, in <module> main() File "./dumpgenerator.py", line 2228, in main resumePreviousDump(config=config, other=other) File "./dumpgenerator.py", line 1829, in resumePreviousDump if lasttitle == '--END--': UnboundLocalError: local variable 'lasttitle' referenced before assignmentpull/319/head
parent
b307de6cb7
commit
59c4c5430e
Loading…
Reference in New Issue