Qix- / better-exceptions

Pretty and useful exceptions in Python, automatically.
MIT License
4.59k stars 203 forks source link

Fix Non-ASCII exceptions UnicodeDecodeError #33

Closed coldnight closed 7 years ago

coldnight commented 7 years ago

Fix Traceback includes Non-ASCII characters will cause UnicodeDecodeError.

Here is the test code:

# -*- coding:utf-8 -*-

import better_exceptions

def _deep(val):
    return 1 / val

def div():
    return _deep("天")

div()
Qix- commented 7 years ago

Neat! Thank you very much :)

Qix- commented 7 years ago

Released as 0.1.7. 💃