From 5495a8555cfd205abb39b479b18622c6183e662a Mon Sep 17 00:00:00 2001 From: Ilyas Osman Date: Tue, 2 Jul 2024 10:53:41 +0300 Subject: [PATCH] Fix incomplete f-strings (#2188) * Fix incomplete f-strings * Fix incomplete f-strings * Apply black formatting to fix linting errors * Apply black formatting to fix linting errors --- capa/features/extractors/cape/global_.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capa/features/extractors/cape/global_.py b/capa/features/extractors/cape/global_.py index 62eeff204..b73e5ab40 100644 --- a/capa/features/extractors/cape/global_.py +++ b/capa/features/extractors/cape/global_.py @@ -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}" ) @@ -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)