Revision: 5071 Author: russblau Date: 2008-02-22 17:29:15 +0000 (Fri, 22 Feb 2008)
Log Message: ----------- fix bug 1899414
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-02-22 14:01:55 UTC (rev 5070) +++ trunk/pywikipedia/wikipedia.py 2008-02-22 17:29:15 UTC (rev 5071) @@ -1659,8 +1659,8 @@ self.get() except NoPage: raise - except IsRedirectPage, ex: - target = ex.message + except IsRedirectPage, err: + target = err[0] if '|' in target: warnings.warn("'%s' has a | character, this makes no sense" % target, Warning)
pywikipedia-l@lists.wikimedia.org