mirror of https://github.com/CIRCL/PyCIRCLean
Added small comment to helpers.py
parent
cb4ae5deec
commit
09973488eb
|
@ -55,6 +55,7 @@ class FileBase(object):
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
mt = magic.from_file(self.src_path, mime=True)
|
mt = magic.from_file(self.src_path, mime=True)
|
||||||
|
# magic will always return something, even if it's just 'data'
|
||||||
except UnicodeEncodeError as e:
|
except UnicodeEncodeError as e:
|
||||||
# FIXME: The encoding of the file is broken (possibly UTF-16)
|
# FIXME: The encoding of the file is broken (possibly UTF-16)
|
||||||
mt = ''
|
mt = ''
|
||||||
|
|
Loading…
Reference in New Issue