From de7da949aadc74062e286a7cadcf496e82a7910a Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Wed, 9 Oct 2024 10:27:29 +0200 Subject: [PATCH] Fix `ValueError() takes no keyword arguments` Fixes #53. --- fiddy/success.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fiddy/success.py b/fiddy/success.py index 1c6fdda..257e72a 100644 --- a/fiddy/success.py +++ b/fiddy/success.py @@ -81,8 +81,8 @@ def method( results_by_size[size] = {} if result.method_id in results_by_size[size]: raise ValueError( - f'Duplicate, and possibly conflicting, results for method "{result.method_id}" and size "{size}".', - stacklevel=1, + f"Duplicate, and possibly conflicting, results for method " + f'"{result.method_id}" and size "{size}".', ) results_by_size[size][result.method_id] = result.value