Issue #27365: partial merge

This commit is contained in:
Terry Jan Reedy 2016-06-22 04:24:27 -04:00
commit 096c6aae87
3 changed files with 64 additions and 8 deletions

View file

@ -77,6 +77,10 @@ def view_file(parent, title, filename, encoding=None, modal=True):
tkMessageBox.showerror(title='File Load Error',
message='Unable to load file %r .' % filename,
parent=parent)
except UnicodeDecodeError as err:
tkMessageBox.showerror(title='Unicode Decode Error',
message=str(err),
parent=parent)
else:
return view_text(parent, title, contents, modal)