Patches item #1794859, was opened at 2007-09-14 19:04 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1794859...
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: Pietrodn (pietrodn) Assigned to: Nobody/Anonymous (nobody) Summary: replace.py "exceptions" patch
Initial Comment: template.py gives this error: pietro$ python template.py "Corso di inglese" "Inglese" Checked for running processes. 2 processes currently running, including the current process. Getting references to [[Template:Corso di inglese]] Getting 31 pages from wikibooks:it... Traceback (most recent call last): File "template.py", line 392, in <module> main() File "template.py", line 388, in main bot.run() File "template.py", line 310, in run replaceBot.run() File "/Users/pietro/Applications/pywikipedia/replace.py", line 295, in run if self.isTitleExcepted(page.title()): File "/Users/pietro/Applications/pywikipedia/replace.py", line 246, in isTitleExcepted if self.exceptions.has_key('title'): AttributeError: 'list' object has no attribute 'has_key'
This because "exceptions" is treated as a dict by replace.py, but it is a list and it must iterate through it.
Here is a patch to replace.py.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=1794859...