https://bugzilla.wikimedia.org/show_bug.cgi?id=55249

       Web browser: ---
            Bug ID: 55249
           Summary: Unicode error when handling non-ASCII network errors
           Product: Pywikibot
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Originally from: http://sourceforge.net/p/pywikipediabot/bugs/1280/
Reported by: tgr_
Created on: 2011-01-09 09:33:39
Subject: Unicode error when handling non-ASCII network errors
Original description:
The error handler for Site.postData in wikipedia.py line 5248 \(in r8821\)
casts an exception to a string:

except Exception, e:
output\(u'%s' %e\)

This will fail with a UnicodeDecodeError if the exception message contains
non-ASCII characters \(which is often the case for network error messages on
non-English Windows\).

Pywikipedia \[http\] trunk/pywikipedia \(r8821, 2011/01/06, 22:01:33\)
Python 2.7 \(r27:82525, Jul  4 2010, 09:01:59\) \[MSC v.1500 32 bit \(Intel\)\]
config-settings:
use\_api = True
use\_api\_login = True
unicode test: triggers problem \#3081100

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to