refactor: use explicit conversion in f-strings

This commit is contained in:
Mark Paronyan committed 2026-10-01 19:57:41 +03:00
1 parent 0f66fd6c2b
commit c5b5091f5e
32 files changed
+65 -65

No files matched your search

+1 -1
View File
@@ -114,7 +114,7 @@ async def list_images(image_type):
}
)
except OSError as e:
log.warning(f"Can't add image {path}: {str(e)}")
log.warning(f"Can't add image {path}: {e!s}")
return images
+1 -1
View File
@@ -62,7 +62,7 @@ def validate_bpf_syntax(bpf_expression: str) -> Dict[str, Any]:
except Exception as e:
log.error("Unexpected error during BPF validation: %s", e)
return {"valid": False, "error": f"BPF validation error: {str(e)}"}
return {"valid": False, "error": f"BPF validation error: {e!s}"}
def validate_filter_parameters(filter_type: str, values: List[Any]) -> None: