Browse Source

Improve exception type

pull/161/head
Oliverpool 9 years ago
parent
commit
b220d6d36a
  1. 2
      patacrep/encoding.py

2
patacrep/encoding.py

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

Loading…
Cancel
Save