Bugs item #1830920, was opened at 2007-11-13 10:10 Message generated for change (Comment added) made by rotemliss You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920...
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: Fixed Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: "replace.py -nocase -excepttext" Unicode AttributeError
Initial Comment: "python replace.py -start:! -nocase -excepttext:42 foo bar" crashes :
Checked for running processes. 2 processes currently running, including the current process. Retrieving Allpages special page for wikipedia:fr from %21, namespace 0 Getting 50 pages from wikipedia:fr... Traceback (most recent call last): File "replace.py", line 556, in <module> main() File "replace.py", line 552, in main bot.run() File "replace.py", line 299, in run if self.isTextExcepted(original_text): File "replace.py", line 259, in isTextExcepted if exc.search(original_text): AttributeError: 'unicode' object has no attribute 'search'
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss) Date: 2007-12-18 19:20
Message: Logged In: YES user_id=1327030 Originator: NO
I found the problem and fixed it in r4729.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss) Date: 2007-12-17 22:31
Message: Logged In: YES user_id=1327030 Originator: NO
Reverted in r4727. This should be thought of again, as exceptions seems to include both regexps and strings.
----------------------------------------------------------------------
Comment By: Rotem Liss (rotemliss) Date: 2007-11-15 16:28
Message: Logged In: YES user_id=1327030 Originator: NO
Fixed in r4557.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2007-11-14 20:46
Message: Logged In: NO
I would add that a call to replace.py with -nocase and one or more of the (-excepttext, -excepttitle and -excepttitle parameters) will cause the same behavior.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1830920...
pywikipedia-l@lists.wikimedia.org