mirror of https://github.com/CIRCL/PyCIRCLean
Unicode error check travis
parent
4205d57dec
commit
3eff10fbcd
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue