forked from openlp/openlp
Close file also on success
This commit is contained in:
parent
9702870afa
commit
af6537116c
@ -415,6 +415,8 @@ class ThemeManager(OpenLPMixin, RegistryMixin, QtGui.QWidget, Ui_ThemeManager, R
|
|||||||
theme_zip.close()
|
theme_zip.close()
|
||||||
shutil.rmtree(theme_path, True)
|
shutil.rmtree(theme_path, True)
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
theme_zip.close()
|
||||||
|
|
||||||
def on_import_theme(self, field=None):
|
def on_import_theme(self, field=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user