Revision: 8026 Author: xqt Date: 2010-03-18 15:02:49 +0000 (Thu, 18 Mar 2010)
Log Message: ----------- dealing with error type for #2972249
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2010-03-18 14:33:58 UTC (rev 8025) +++ trunk/pywikipedia/weblinkchecker.py 2010-03-18 15:02:49 UTC (rev 8026) @@ -425,7 +425,7 @@ msg = error[1] except IndexError: print u'### DEBUG information for #2972249' - raise IndexError, error + raise IndexError, type(error) # TODO: decode msg. On Linux, it's encoded in UTF-8. # How is it encoded in Windows? Or can we somehow just # get the English message?
pywikipedia-svn@lists.wikimedia.org