openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #07311
[Bug 738207] Re: Attempting to import a non-theme file causes a stack trace
I assigned it to 1.9.6 due to string freeze and new error message, but I
look forward to seeing how you work around that :)
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/738207
Title:
Attempting to import a non-theme file causes a stack trace
Status in OpenLP - Worship Presentation Software:
Confirmed
Bug description:
From: http://support.openlp.org/issues/140
When importing a theme, attempting to open a file which isn't a theme file causes the error occurred bug report dialog to appear.
It should instead pop up a small dialog saying "Invalid theme".
Note even though there is now in more recent versions a pre-defined
list of file types, the file open dialog still allows user to type in
a different extension, so we still need to trap for these types of
errors.
Traceback (most recent call last):
File "C:\Users\jonathan\Documents\projects\openlp\general\openlp\core\ui\thememanager.py", line 432, in onImportTheme
self.unzipTheme(file, self.path)
File "C:\Users\jonathan\Documents\projects\openlp\general\openlp\core\ui\thememanager.py", line 562, in unzipTheme
if filexml:
UnboundLocalError: local variable 'filexml' referenced before assignment
References