https://bugzilla.wikimedia.org/show_bug.cgi?id=68659
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- It also fails quite badly if the file doesnt exist.
$ python pwb.py imagetransfer -family:wikipedia -lang:en "File:Joachim_Holst-Jensen_1923" ------------------------------------------------------------ 0. Found image: [[File:Joachim Holst-Jensen 1923]] ============================================================ Traceback (most recent call last): File "pwb.py", line 157, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/imagetransfer.py", line 356, in <module> main() File "scripts/imagetransfer.py", line 353, in main bot.run() File "scripts/imagetransfer.py", line 289, in run if imagelist[todo].fileIsShared(): File ".../pywikibot/page.py", line 1827, in fileIsShared return self.fileUrl().startswith( File ".../pywikibot/page.py", line 1803, in fileUrl self._imageinfo = self.site.loadimageinfo(self) File ".../pywikibot/site.py", line 1445, in loadimageinfo if history else pageitem['imageinfo'][0]) KeyError: 'imageinfo' <type 'exceptions.KeyError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort