From 3eff10fbcdfd10e7d7deeeb6cbd9fc5bf81e0582 Mon Sep 17 00:00:00 2001 From: Dan Puttick Date: Thu, 20 Jul 2017 13:44:44 -0400 Subject: [PATCH] Unicode error check travis --- kittengroomer/helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kittengroomer/helpers.py b/kittengroomer/helpers.py index 06665e0..0f2cb1b 100644 --- a/kittengroomer/helpers.py +++ b/kittengroomer/helpers.py @@ -243,8 +243,7 @@ class FileBase(object): mt = magic.from_file(file_path, mime=True) # libmagic will always return something, even if it's just 'data' except UnicodeEncodeError as e: - # FIXME: The encoding of the file that triggers this is broken (possibly it's UTF-16 and Python expects utf8) - # Note: one of the Travis files will trigger this exception + raise UnicodeEncodeError(e) self.add_error(e, '') mt = None try: