Revision: 7177
Author: filnik
Date: 2009-08-26 20:59:03 +0000 (Wed, 26 Aug 2009)
Log Message:
-----------
Bugfix by mauro742 for Bug ID: 2839738
Modified Paths:
--------------
trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py
===================================================================
--- trunk/pywikipedia/add_text.py 2009-08-26 17:50:13 UTC (rev 7176)
+++ trunk/pywikipedia/add_text.py 2009-08-26 20:59:03 UTC (rev 7177)
@@ -164,7 +164,7 @@
result = re.findall(regexSkip, text)
if result != []:
wikipedia.output(u'Exception! regex (or word) used with -except is
in the page. Skip!')
- return (False, always) # continue
+ return (False, False, always) # continue
# If not up, text put below
if not up:
newtext = text
@@ -215,7 +215,7 @@
if choice == 'a':
always = True
if choice == 'n':
- return (False, always)
+ return (False, False, always)
if choice == 'y' or always:
try:
if always:
@@ -224,7 +224,7 @@
page.put_async(newtext, summary)
except wikipedia.EditConflict:
wikipedia.output(u'Edit conflict! skip!')
- return (False, always)
+ return (False, False, always)
except wikipedia.ServerError:
errorCount += 1
if errorCount < 5:
@@ -241,11 +241,11 @@
return (False, always)
except wikipedia.LockedPage:
wikipedia.output(u'Skipping %s (locked page)' %
page.title())
- return (False, always)
+ return (False, False, always)
else:
# Break only if the errors are one after the other...
errorCount = 0
- return (True, always)
+ return (True, True, always)
else:
return (text, newtext, always)
_______________________________________________
Pywikipedia-svn mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-svn