Fix #324 - World List not catching all invalid-world errors
This commit is contained in:
parent
34fa322c92
commit
18cada97f0
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user