Close file also on success

This commit is contained in:
Samuel Mehrbrodt 2014-06-30 14:36:35 +02:00
parent 9702870afa
commit af6537116c

View File

@ -415,6 +415,8 @@ class ThemeManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ThemeManager, R
theme_zip.close()
shutil.rmtree(theme_path, True)
raise
else:
theme_zip.close()
def on_import_theme(self, field=None):
"""