Revision 4112
Added by Aaron Marcuse-Kubitza over 12 years ago
exc.py | ||
---|---|---|
47 | 47 |
def e_str(e): return e.__class__.__name__+': '+e_msg(e) |
48 | 48 |
|
49 | 49 |
def add_msg(e, msg): |
50 |
e.args = (e_msg(e)+'\n'+strings.ustr(msg),)
|
|
50 |
e.args = (strings.to_raw_str(e_msg(e)+'\n'+strings.ustr(msg)),)
|
|
51 | 51 |
|
52 | 52 |
def repl_msg(e, **repls): e.args = (e_msg(e) % repls,) |
53 | 53 |
|
Also available in: Unified diff
exc.py: add_msg(): Fixed bug where needed to convert the Unicode string back into a raw string because Python's top-level exception handler doesn't support Unicode strings as exception messages