To generate more friendly error message

pull/144/head
Sheng 2020-02-14 07:59:14 +08:00
parent 0afc045f77
commit 32d7236630
1 changed files with 1 additions and 1 deletions

View File

@ -193,4 +193,4 @@ def get_font_filename(font, font_dir):
def check_encoding_setting(encoding):
if encoding and not is_valid_encoding(encoding):
raise ValueError('Unknown character encoding.')
raise ValueError('Unknown character encoding {!r}.'.format(encoding))