Last modified: 2014-05-31 08:24:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T67309, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65309 - newitem.py crash on non-existing page
newitem.py crash on non-existing page
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: xqt
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-14 20:34 UTC by JAn Dudík
Modified: 2014-05-31 08:24 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description JAn Dudík 2014-05-14 20:34:47 UTC
WHen there is non-existing page (like with pagegenerator -links:) bot crashes:




I:\py\rewrite>pwb.py newitem -links:Přibyslav -namespace:0 -lang:cs
Retrieving 50 pages from wikipedia:cs.
Processing [[cs:Glej]]
Traceback (most recent call last):
  File "I:\py\rewrite\pwb.py", line 143, in <module>
    run_python_file(fn, argv, argvu)
  File "I:\py\rewrite\pwb.py", line 67, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "I:\py\rewrite\scripts\newitem.py", line 111, in <module>
    main()
  File "I:\py\rewrite\scripts\newitem.py", line 108, in main
    bot.run()
  File "I:\py\rewrite\scripts\newitem.py", line 58, in run
    elif page.editTime() > self.lastEditBefore:
  File "I:\py\rewrite\pywikibot\page.py", line 456, in editTime
    rev = self.latestRevision()
  File "I:\py\rewrite\pywikibot\page.py", line 371, in latestRevision
    self.site.loadrevisions(self)
  File "I:\py\rewrite\pywikibot\site.py", line 1826, in loadrevisions
    raise NoPage(page)
pywikibot.exceptions.NoPage
<class 'pywikibot.exceptions.NoPage'>
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

I:\py\rewrite>
Comment 1 Gerrit Notification Bot 2014-05-29 16:33:06 UTC
Change 135749 had a related patch set uploaded by Xqt:
(bug 65309) check whether page already exist, code improvements

https://gerrit.wikimedia.org/r/135749
Comment 2 Gerrit Notification Bot 2014-05-30 09:37:41 UTC
Change 135749 merged by jenkins-bot:
(bug 65309) check whether page already exist, code improvements

https://gerrit.wikimedia.org/r/135749

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links