Revision 4492
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
43 | 43 |
|
44 | 44 |
class ExceptionWithValue(DbException): |
45 | 45 |
def __init__(self, value, cause=None): |
46 |
DbException.__init__(self, 'for value: '+strings.as_tt(repr(value)),
|
|
47 |
cause) |
|
46 |
DbException.__init__(self, 'for value: ' |
|
47 |
+strings.as_tt(strings.urepr(value)), cause)
|
|
48 | 48 |
self.value = value |
49 | 49 |
|
50 | 50 |
class ExceptionWithNameType(DbException): |
Also available in: Unified diff
Replaced repr() with strings.urepr() (or equivalent) everywhere needed, to avoid future UnicodeEncodeErrors