Steps to replicate the issue:
- create a file (pages1.txt) with any wikipage content but only one page without any delimiter
- run pwb pagefromfile -simulate -notitle -textonly -file:pages1.txt
What happens?:
D:\pwb\GIT\core>pwb pagefromfile -simulate -notitle -textonly -file:pages1.txt Reading 'pages1.txt'... No title found - skipping a page. No title found - skipping a page. ... No title found - skipping a page. No title found - skipping a page. No title found - skipping a page. Retrieving 1 pages from wikipedia:de. KeyboardInterrupt during PageFromFileRobot bot run... 2 read operations Execution time: 1 seconds Read operation time: 0.5 seconds Script terminated successfully. D:\pwb\GIT\core>
What should have happened instead?:
There is only one page to process.
Software version (skip for WMF-hosted wikis like Wikipedia):
Tested with 4.0 and 7.6 but I guess this error exists since compat 1.0