Skip to content

Commit 189118e

Browse files
committed
Add: Debugging line for mimetype
1 parent 89ec05b commit 189118e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extractor/decompress/decompress/decompress.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ def extract(self, payload, **kwargs):
8585
Decompress a payload
8686
8787
:param bytes payload: Content to be decompressed
88-
:param **kwargs filename: Filename of compressed archive
89-
:param **kwargs archive_passwords: List of passwords to attempt against the archive
88+
:param str filename: Filename of compressed archive
89+
:param list archive_passwords: List of passwords to attempt against the archive
9090
9191
:returns: Metadata and content extracted
9292
:rtype: list of tuples
@@ -115,6 +115,7 @@ def extract(self, payload, **kwargs):
115115
# Determine the mimetype of the payload so we can identify the
116116
# correct archiver
117117
mimetype = get_magic(payload)
118+
self.log.debug("Mimetype: {}".format(mimetype))
118119
if mimetype in archive_magic:
119120
archive_type = archive_magic[mimetype]
120121
if archive_type in archive_cmds:

0 commit comments

Comments
 (0)