diff --git a/openlp/plugins/songs/lib/openlyricsimport.py b/openlp/plugins/songs/lib/openlyricsimport.py index c13b89de8..cc4759d50 100644 --- a/openlp/plugins/songs/lib/openlyricsimport.py +++ b/openlp/plugins/songs/lib/openlyricsimport.py @@ -77,7 +77,7 @@ class OpenLyricsImport(SongImport): except OpenLyricsError as exception: log.exception(u'OpenLyricsException of type %s: %s in file %s' % (exception.type, exception.message, file_path)) - if exception.type is 'XML': + if exception.type == 'XML': self.logError(file_path, SongStrings.XMLSyntaxError) else: self.logError(file_path, exception.message)