mirror of
https://github.com/huashengdun/webssh.git
synced 2026-08-20 04:36:42 +00:00
To generate more friendly error message
This commit is contained in:
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user