Skip to content

Commit

Permalink
Fix incomplete f-strings (#2188)
Browse files Browse the repository at this point in the history
* Fix incomplete f-strings

* Fix incomplete f-strings

* Apply black formatting to fix linting errors

* Apply black formatting to fix linting errors
  • Loading branch information
IlyasOsman committed Jul 2, 2024
1 parent 1a44701 commit 5495a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capa/features/extractors/cape/global_.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def extract_format(report: CapeReport) -> Iterator[Tuple[Feature, Address]]:
else:
logger.warning("unknown file format, file command output: %s", report.target.file.type)
raise ValueError(
"unrecognized file format from the CAPE report; output of file command: {report.target.file.type}"
f"unrecognized file format from the CAPE report; output of file command: {report.target.file.type}"
)


Expand All @@ -73,7 +73,7 @@ def extract_os(report: CapeReport) -> Iterator[Tuple[Feature, Address]]:
else:
# if the operating system information is missing from the cape report, it's likely a bug
logger.warning("unrecognized OS: %s", file_output)
raise ValueError("unrecognized OS from the CAPE report; output of file command: {file_output}")
raise ValueError(f"unrecognized OS from the CAPE report; output of file command: {file_output}")
else:
# the sample is shellcode
logger.debug("unsupported file format, file command output: %s", file_output)
Expand Down

0 comments on commit 5495a85

Please sign in to comment.