diff --git a/patacrep/encoding.py b/patacrep/encoding.py index 1ed15b94..3f1512cf 100644 --- a/patacrep/encoding.py +++ b/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))