openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #29358
[Bug 1553922] Re: EasyWorship import throws exception on unknown character
** Branch linked: lp:openlp/2.4
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1553922
Title:
EasyWorship import throws exception on unknown character
Status in OpenLP:
Fix Committed
Bug description:
When importing from a EasyWorship DB the user selects an encoding to use for the imported text. If the importer encounters an unknown character it currently throws the exception shown below. This should be handled better, for example by creating an error entry in the import-log.
See https://support.openlp.org/scp/tickets.php?id=3332 for example files.
Traceback (most recent call last):
File "/home/tgc/stuff/openlp/trunk/openlp/core/ui/wizard.py", line 216, in on_current_id_changed
self.perform_wizard()
File "/home/tgc/stuff/openlp/trunk/openlp/plugins/songs/forms/songimportform.py", line 351, in perform_wizard
importer.do_import()
File "/home/tgc/stuff/openlp/trunk/openlp/plugins/songs/lib/importers/easyworship.py", line 78, in do_import
self.import_db()
File "/home/tgc/stuff/openlp/trunk/openlp/plugins/songs/lib/importers/easyworship.py", line 303, in import_db
self.copyright = copy.decode(self.encoding)
File "/usr/lib/python3.4/encodings/cp1252.py", line 15, in decode
return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 45: character maps to <undefined>
To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1553922/+subscriptions
References