To generate more friendly error message

pull/144/head
Sheng 5 years ago
parent 0afc045f77
commit 32d7236630

@ -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))

Loading…
Cancel
Save