Added small comment to helpers.py

pull/8/head
Dan Puttick 2016-12-14 16:32:58 -05:00
parent cb4ae5deec
commit 09973488eb
1 changed files with 1 additions and 0 deletions

View File

@ -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 = ''