Unicode error check travis

pull/21/head
Dan Puttick 2017-07-20 13:44:44 -04:00
parent 4205d57dec
commit 3eff10fbcd
1 changed files with 1 additions and 2 deletions

View File

@ -243,8 +243,7 @@ class FileBase(object):
mt = magic.from_file(file_path, mime=True) mt = magic.from_file(file_path, mime=True)
# libmagic will always return something, even if it's just 'data' # libmagic will always return something, even if it's just 'data'
except UnicodeEncodeError as e: except UnicodeEncodeError as e:
# FIXME: The encoding of the file that triggers this is broken (possibly it's UTF-16 and Python expects utf8) raise UnicodeEncodeError(e)
# Note: one of the Travis files will trigger this exception
self.add_error(e, '') self.add_error(e, '')
mt = None mt = None
try: try: