Skip to content

Commit

Permalink
style: Automatic code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 18, 2024
1 parent bb7756a commit b28d42c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/cuckoo/common/integrations/file_extra_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def generic_file_extractors(
data_dictionary["selfextract"][new_tool_name] = {
"extracted_files": metadata,
"extracted_files_time": func_result["took_seconds"],
"password": extraction_result.get("password", "")
"password": extraction_result.get("password", ""),
}
finally:
if tempdir:
Expand Down Expand Up @@ -713,7 +713,10 @@ def Inno_extract(file: str, *, data_dictionary: dict, **_) -> ExtractorReturnTyp
universal_newlines=True,
stderr=subprocess.PIPE,
)
if "Warning: Setup contains encrypted files, use the --password option to extract them" in output or "- encrypted" in output:
if (
"Warning: Setup contains encrypted files, use the --password option to extract them" in output
or "- encrypted" in output
):
output = run_tool(
[innoextact_binary, "--crack", file],
universal_newlines=True,
Expand Down

0 comments on commit b28d42c

Please sign in to comment.