From 18cada97f0388be5ba18fb469980ff6f1db83f4d Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 15 Jun 2017 01:21:43 -1000 Subject: [PATCH] Fix #324 - World List not catching all invalid-world errors --- src/mcedit2/worldlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mcedit2/worldlist.py b/src/mcedit2/worldlist.py index f9c29cf..e23364d 100644 --- a/src/mcedit2/worldlist.py +++ b/src/mcedit2/worldlist.py @@ -386,9 +386,9 @@ class WorldListWidget(QtGui.QDialog, Ui_worldList): try: worldEditor = worldeditor.WorldEditor(filename, readonly=True) - except (EnvironmentError, LevelFormatError, zipfile.BadZipfile) as e: + except Exception as e: self.errorWidget = QtGui.QWidget() - setWidgetError(self.errorWidget, e, "An error occurred while reading the world %s." % filename) + setWidgetError(self.errorWidget, e, "An error occurred while reading the file %s. This file might not be a Minecraft world. If it is, please file a bug report." % filename) self.stackedWidget.addWidget(self.errorWidget) self.stackedWidget.setCurrentWidget(self.errorWidget)