Style, no "is" to compare strings.

This commit is contained in:
Mattias Põldaru 2011-12-17 23:17:53 +02:00
parent 86df7d9734
commit dca74bd144
1 changed files with 1 additions and 1 deletions

View File

@ -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)