Bugs item #2970070, was opened at 2010-03-14 02:28 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970070...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: other Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: masti (masti01)
Assigned to: xqt (xqt)
Summary: reflinks.py crashes on 404 error
Initial Comment: reflinks.py does not properly recognize 404 error:
HTTP error (404) for http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=44894 on [[Lacrosse]] Traceback (most recent call last): File "reflinksmb.py", line 753, in <module> main() File "reflinksmb.py", line 749, in main bot.run() File "reflinksmb.py", line 551, in run repl = ref.refDead() File "reflinksmb.py", line 197, in refDead tag = wikipedia.translate(self.site, deadLinkTag) % self.link TypeError: not all arguments converted during string formatting
python version.py Pywikipedia [http] trunk/pywikipedia (r7991, 2010/03/12, 09:03:31) Python 2.6.2 (r262:71600, Oct 22 2009, 08:54:52) [GCC 4.3.4]
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-03-14 17:30
Message: fixed in r8008
----------------------------------------------------------------------
Comment By: masti (masti01) Date: 2010-03-14 02:34
Message: python reflinksmb.py -xml:plwiki-20100307-pages-meta-current.xml -xmlstart:Lacrosse Reading XML dump... Getting 1 pages from wikipedia:pl... Getting 50 pages from wikipedia:pl... HTTP error (404) for http://www.guinnessworldrecords.com/content_pages/record.asp?recordid=44894 on [[Lacrosse]] Traceback (most recent call last): File "reflinksmb.py", line 753, in <module> main() File "reflinksmb.py", line 749, in main bot.run() File "reflinksmb.py", line 551, in run repl = ref.refDead() File "reflinksmb.py", line 197, in refDead tag = wikipedia.translate(self.site, deadLinkTag) % self.link TypeError: not all arguments converted during string formatting
reflinksmb.py is a copy of reflinks.py
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2970070...