Browse Source

Correct Exception for unknown encoding

pull/161/head
Oliverpool 9 years ago
parent
commit
f22b726484
  1. 3
      patacrep/encoding.py

3
patacrep/encoding.py

@ -42,5 +42,4 @@ def detect_encoding(filename):
return encoding
finally:
filehandler.close()
raise UnicodeDecodeError('Not suitable encoding found for {}'.format(filename))
raise UnicodeError('Not suitable encoding found for {}'.format(filename))

Loading…
Cancel
Save