mirror of https://github.com/CIRCL/AIL-framework
MIME type guessing - removed one duplicate call to libmagic
parent
e8fcea6cd6
commit
1d64dc44c8
|
@ -134,10 +134,7 @@ class Paste(object):
|
|||
:Example: PST._set_p_encoding()
|
||||
|
||||
"""
|
||||
try:
|
||||
return magic.Magic(mime_encoding=True).from_buffer(self.get_p_content())
|
||||
except magic.MagicException:
|
||||
pass
|
||||
return self.p_mime
|
||||
|
||||
def _set_p_hash_kind(self, hashkind):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue