From 35fde61ede2277da27f5d9a1b5fa8320eb258440 Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Fri, 26 Apr 2024 15:19:47 -0400 Subject: [PATCH] fix bug in string-based backend init --- progress_api/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress_api/config.py b/progress_api/config.py index f5d0ef3..bd2484c 100644 --- a/progress_api/config.py +++ b/progress_api/config.py @@ -86,7 +86,7 @@ def set_backend( if isinstance(impl, str): eps = entry_points(name=impl, group="progress_api.backend") if eps: - impl = eps[0].load() + impl = eps[impl].load() else: raise ValueError(f"unknown progress backend {impl}")