[Pywikipedia-l] SVN: [5953] trunk/pywikipedia/checkimages.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Fri Oct 10 16:48:56 UTC 2008
Revision: 5953
Author: filnik
Date: 2008-10-10 16:48:56 +0000 (Fri, 10 Oct 2008)
Log Message:
-----------
Little bugfix on smartDetection()
Modified Paths:
--------------
trunk/pywikipedia/checkimages.py
Modified: trunk/pywikipedia/checkimages.py
===================================================================
--- trunk/pywikipedia/checkimages.py 2008-10-10 16:47:17 UTC (rev 5952)
+++ trunk/pywikipedia/checkimages.py 2008-10-10 16:48:56 UTC (rev 5953)
@@ -1068,9 +1068,9 @@
# Template with wrong name, no need to report, simply skip
continue
try:
- template_text = template.get()
if template == None:
- continue # ok, this template it's not ok, continue..
+ continue # ok, this template it's not ok, continue..
+ template_text = template.get()
except wikipedia.NoPage:
continue # ok, this template it's not ok, continue..
regex_noinclude = re.compile(r'<noinclude>(.*?)</noinclude>', re.DOTALL)
More information about the Pywikipedia-l
mailing list