Skip to content

Commit

Permalink
Update objects.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven authored Feb 11, 2025
1 parent 24ca507 commit 7b76ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cuckoo/common/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ def get_content_type(self):
if self.path_object.exists():
if HAVE_MAGIC:
fn = False
if hasattr(magic, "detect_from_filename"):
fn = magic.detect_from_filename
if hasattr(magic, "from_file"):
fn = magic.from_file
if hasattr(magic, "detect_from_filename"):
fn = magic.detect_from_filename
if fn:
try:
file_type = fn(self.file_path_ansii)
Expand Down

0 comments on commit 7b76ace

Please sign in to comment.