Revision 2878
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/exc.py | ||
---|---|---|
78 | 78 |
if emph: |
79 | 79 |
first_line, nl, rest = msg.partition('\n') |
80 | 80 |
msg = term.error(first_line)+nl+rest |
81 |
sys.stderr.write(msg)
|
|
81 |
sys.stderr.write(strings.to_unicode(msg))
|
|
82 | 82 |
|
83 | 83 |
class ExTracker: |
84 | 84 |
def __init__(self): |
Also available in: Unified diff
exc.py: print_ex(): Wrap msg in strings.to_unicode() to try to avoid UnicodeEncodeError when msg contains non-ASCII chars