| 9 | |
| 10 | |
| 11 | class DjangoUnicodeDecodeError(UnicodeDecodeError): |
| 12 | def __str__(self): |
| 13 | return "%s. You passed in %r (%s)" % ( |
| 14 | super().__str__(), |
| 15 | self.object, |
| 16 | type(self.object), |
| 17 | ) |
| 18 | |
| 19 | |
| 20 | def smart_str(s, encoding="utf-8", strings_only=False, errors="strict"): |