diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index b9ca9e3269d..9dc83574ee6 100644 --- a/Lib/idlelib/textView.py +++ b/Lib/idlelib/textView.py @@ -77,10 +77,6 @@ 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)