From e5170b2f117a85490c4cd16ce6c039e13f1bf8f9 Mon Sep 17 00:00:00 2001 From: Joshua Hampton Date: Tue, 9 Apr 2024 13:04:53 +0100 Subject: [PATCH] Fix nested quotes inside f strings for pre python 3.12 --- checksit/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checksit/generic.py b/checksit/generic.py index 3d972d0..1a632a6 100644 --- a/checksit/generic.py +++ b/checksit/generic.py @@ -437,7 +437,7 @@ def check_radar_moment_variables(dct, exist_attrs=None, rule_attrs=None, one_of_ if attr not in dct["variables"][variable]: errors.append( f"[variable**************:{variable}]: Attribute '{attr}' does not exist. " - f"{search_close_match(attr, dct["variables"][variable]) if not skip_spellcheck else ''}" + f"{search_close_match(attr, dct['variables'][variable]) if not skip_spellcheck else ''}" ) for attr in rule_attrs: if isinstance(attr, dict) and len(attr.keys()) == 1: