Browse Source

To generate more friendly error message

pull/144/head
Sheng 5 years ago
parent
commit
32d7236630
  1. 2
      webssh/settings.py

2
webssh/settings.py

@ -193,4 +193,4 @@ def get_font_filename(font, font_dir):
def check_encoding_setting(encoding): def check_encoding_setting(encoding):
if encoding and not is_valid_encoding(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