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 return encoding
finally: finally:
filehandler.close() filehandler.close()
raise UnicodeError('Not suitable encoding found for {}'.format(filename))
raise UnicodeDecodeError('Not suitable encoding found for {}'.format(filename))

Loading…
Cancel
Save