Revision: 4782 Author: filnik Date: 2007-12-29 21:50:07 +0000 (Sat, 29 Dec 2007)
Log Message: ----------- another Encoding forgot... -.-' now it should be ok
Modified Paths: -------------- trunk/pywikipedia/add_text.py
Modified: trunk/pywikipedia/add_text.py =================================================================== --- trunk/pywikipedia/add_text.py 2007-12-29 21:38:37 UTC (rev 4781) +++ trunk/pywikipedia/add_text.py 2007-12-29 21:50:07 UTC (rev 4782) @@ -201,10 +201,10 @@ for paginetta in interwikiList: try: newtext += '\n[[%s]]' % paginetta.decode('utf-8') - except UnicodeEncodeError: + except UnicodeDecodeError: try: newtext += '\n[[%s]]' % paginetta.decode('Latin-1') - except UnicodeEncodeError: + except UnicodeDecodeError: newtext += '\n[[%s]]' % paginetta # If instead the text must be added above... else: