diff --git a/kittengroomer/helpers.py b/kittengroomer/helpers.py index 990f899..9604c49 100644 --- a/kittengroomer/helpers.py +++ b/kittengroomer/helpers.py @@ -55,6 +55,7 @@ class FileBase(object): else: try: mt = magic.from_file(self.src_path, mime=True) + # magic will always return something, even if it's just 'data' except UnicodeEncodeError as e: # FIXME: The encoding of the file is broken (possibly UTF-16) mt = ''