Revision 2342
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/exc.py | ||
---|---|---|
36 | 36 |
except AttributeError: return '' |
37 | 37 |
return ''.join(get_traceback_str(t) for t in tracebacks) |
38 | 38 |
|
39 |
def add_msg(e, msg): e.args = (strings.ensure_newl(strings.ustr(e))+msg,) |
|
39 |
def add_msg(e, msg): |
|
40 |
e.args = (strings.ensure_newl(strings.ustr(e))+strings.ustr(msg),) |
|
40 | 41 |
|
41 | 42 |
def repl_msg(e, **repls): e.args = (strings.ustr(e) % repls,) |
42 | 43 |
|
Also available in: Unified diff
exc.py: add_msg(): Fixed bug where msg needed to be converted to a unicode object before appending it to another unicode object