Bugs item #3098006, was opened at 2010-10-29 09:28
Message generated for change (Tracker Item Submitted) made by jandudik
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=309800…
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: Open
Resolution: None
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>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=309800…