forked from openlp/openlp
Removed loop
This commit is contained in:
parent
7cc9f9ae7b
commit
e802d577fd
@ -227,9 +227,4 @@ class SongShowPlusImport(SongImport):
|
|||||||
try:
|
try:
|
||||||
return unicode(data, chardet.detect(data)['encoding'])
|
return unicode(data, chardet.detect(data)['encoding'])
|
||||||
except:
|
except:
|
||||||
self.encoding = u'cp1252'
|
return unicode(data, retrieve_windows_encoding())
|
||||||
while self.encoding:
|
|
||||||
try:
|
|
||||||
return unicode(data, self.encoding)
|
|
||||||
except:
|
|
||||||
self.encoding = retrieve_windows_encoding()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user