Bugs item #3098006, was opened at 2010-10-29 09:28 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3098006...
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: None Group: None
Status: Closed Resolution: Duplicate
Priority: 5 Private: No Submitted By: JAn (jandudik) Assigned to: Nobody/Anonymous (nobody) Summary: category add and redirects
Initial Comment: When in list is redirect. bot fails:
C:\Dokumenty\py>category.py add -links:Medaile_Za_zásluhy Category to add (do not give namespace): Nositelé Medaile Za zásluhy (Česko) Getting 60 pages from wikipedia:cs...
..... Milan Kundera is already in Kategorie:Nositelé Medaile Za zásluhy (Česko). Traceback (most recent call last): File "C:\Dokumenty\py\category.py", line 1184, in <module> main() File "C:\Dokumenty\py\category.py", line 1137, in main bot.run() File "C:\Dokumenty\py\category.py", line 408, in run self.treat(page) File "C:\Dokumenty\py\category.py", line 477, in treat text = self.load(page) File "C:\Dokumenty\py\category.py", line 428, in load redirTarget = pywikibot.Page(site, arg.args[0]) NameError: global name 'site' is not defined
C:\Dokumenty\py>
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-05-15 18:09
Message: duplicate to #3158464, fixed in r8830 by Merlijn
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3098006...
pywikipedia-bugs@lists.wikimedia.org