Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 3b88fd6

Browse files
mitsuhikoashwoods
authored andcommitted
fix: Correct repr fallback of to_unicode
1 parent 9c2bbd6 commit 3b88fd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raven/utils/encoding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def to_unicode(value):
8484
value = '(Error decoding value)'
8585
except Exception: # in some cases we get a different exception
8686
try:
87-
value = binary_type(repr(type(value)))
87+
value = text_type(force_text(repr(type(value))))
8888
except Exception:
8989
value = '(Error decoding value)'
9090
return value

0 commit comments

Comments
 (0)