The exception was thrown in the open() call. I now changed the mode from 'r' to 'rb' which opens the file in binary mode.
The python docs say: Files opened in binary mode (including 'b' in the mode argument) return contents as bytes objects without any decoding. (http://docs.python.org/3/library/functions.html#open) -- https://code.launchpad.net/~sam92/openlp/fix-songbeamer-import/+merge/187815 Your team OpenLP Core is subscribed to branch lp:openlp. _______________________________________________ Mailing list: https://launchpad.net/~openlp-core Post to : [email protected] Unsubscribe : https://launchpad.net/~openlp-core More help : https://help.launchpad.net/ListHelp

