diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2017-09-07 23:23:55 +0200 |
---|---|---|
committer | Ashley Camba <ashwoods@gmail.com> | 2017-09-08 17:06:48 +0200 |
commit | 3b88fd67d9976c215eaccff7ee2f80811be7f057 (patch) | |
tree | bc2a904115e039c1184cf0b244298cb786f5e364 /raven/utils | |
parent | 9c2bbd604fb0c223d15032615951bfd9b1adf721 (diff) | |
download | raven-3b88fd67d9976c215eaccff7ee2f80811be7f057.tar.gz |
fix: Correct repr fallback of to_unicode
Diffstat (limited to 'raven/utils')
-rw-r--r-- | raven/utils/encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/raven/utils/encoding.py b/raven/utils/encoding.py index d95f9e0..997a943 100644 --- a/raven/utils/encoding.py +++ b/raven/utils/encoding.py @@ -84,7 +84,7 @@ def to_unicode(value): value = '(Error decoding value)' except Exception: # in some cases we get a different exception try: - value = binary_type(repr(type(value))) + value = text_type(force_text(repr(type(value)))) except Exception: value = '(Error decoding value)' return value |