Skip to content

Commit

Permalink
fix bug in string-based backend init
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Apr 26, 2024
1 parent c2e2409 commit 35fde61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 35fde61

Please sign in to comment.