Revision: 6021 Author: btongminh Date: 2008-10-25 21:20:32 +0000 (Sat, 25 Oct 2008)
Log Message: ----------- Apparently UserBlocked is not always two items long.
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/delinker.py
Modified: trunk/pywikipedia/commonsdelinker/delinker.py =================================================================== --- trunk/pywikipedia/commonsdelinker/delinker.py 2008-10-25 20:27:59 UTC (rev 6020) +++ trunk/pywikipedia/commonsdelinker/delinker.py 2008-10-25 21:20:32 UTC (rev 6021) @@ -135,7 +135,7 @@ try: result = self.replace_image(image, site, title, summary, replacement) except wikipedia.UserBlocked, e: - output(u'Warning! Blocked on %s by %s.' % (e[0], e[1])) + output(u'Warning! Blocked %s.' % tuple(e)) except wikipedia.CaptchaError, e: output(u'%s Warning! Captcha encountered at %s.' % (self, site)) if (lang, family) not in skipped_images: