From bed9d3e65915f25cb40b13d065aa3217bd9dbd00 Mon Sep 17 00:00:00 2001 From: michael hohn Date: Sat, 23 Aug 2025 20:31:54 -0700 Subject: [PATCH] Fix new float content handling: raise Exception("Unknown element type", t, elem) Exception: ('Unknown element type', , 99.96780515670306) from { "rule": { "id": "cpp/telemetry/database-quality", "index": 53 }, "ruleId": "cpp/telemetry/database-quality", "ruleIndex": 53, "value": 99.96780515670306, "message": { "text": "Percentage of functions without errors" } } --- sarif_cli/signature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sarif_cli/signature.py b/sarif_cli/signature.py index 59a8e29..341f6a4 100644 --- a/sarif_cli/signature.py +++ b/sarif_cli/signature.py @@ -362,8 +362,8 @@ def fillsig(args, elem, context): return fillsig_dict(args, elem, context) elif t == list: return fillsig_list(args, elem, context) - elif t in [str, int, bool]: + elif t in [str, int, bool, float]: return elem else: - raise Exception("Unknown element type") + raise Exception("Unknown element type", t, elem)