forked from openlp/openlp
Style, no "is" to compare strings.
This commit is contained in:
parent
86df7d9734
commit
dca74bd144
@ -77,7 +77,7 @@ class OpenLyricsImport(SongImport):
|
|||||||
except OpenLyricsError as exception:
|
except OpenLyricsError as exception:
|
||||||
log.exception(u'OpenLyricsException of type %s: %s in file %s'
|
log.exception(u'OpenLyricsException of type %s: %s in file %s'
|
||||||
% (exception.type, exception.message, file_path))
|
% (exception.type, exception.message, file_path))
|
||||||
if exception.type is 'XML':
|
if exception.type == 'XML':
|
||||||
self.logError(file_path, SongStrings.XMLSyntaxError)
|
self.logError(file_path, SongStrings.XMLSyntaxError)
|
||||||
else:
|
else:
|
||||||
self.logError(file_path, exception.message)
|
self.logError(file_path, exception.message)
|
||||||
|
Loading…
Reference in New Issue
Block a user