From 5d43b42d29b37a346c5a4d9b92e9d9d2c0684b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Mon, 4 Mar 2024 13:11:44 -0600 Subject: [PATCH] fix: The `state_partition_context` dictionary is now correctly interpolated in the error message when duplicate partitions/contexts are detected in the input state (#2281) --- singer_sdk/helpers/_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singer_sdk/helpers/_state.py b/singer_sdk/helpers/_state.py index e265be97b..f3a831108 100644 --- a/singer_sdk/helpers/_state.py +++ b/singer_sdk/helpers/_state.py @@ -80,7 +80,7 @@ def _find_in_partitions_list( if len(found) > 1: msg = ( "State file contains duplicate entries for partition: " - f"{{state_partition_context}}.\nMatching state values were: {found!s}" + f"{state_partition_context}.\nMatching state values were: {found!s}" ) raise ValueError(msg) return found[0] if found else None