Skip to content

Commit

Permalink
[plugins][bugfix] get entry point name before loading
Browse files Browse the repository at this point in the history
otherwise the error doesn't receive the name of the entry point
  • Loading branch information
joanrue committed Apr 5, 2024
1 parent a4f5e2c commit 7ffbd1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pyxu/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ def _load_entry_points(glob, group, names=None):
# Load entry points
try:
for ep in eps:
ep_load = ep.load()
name = ep.name
ep_load = ep.load()

# If plugin can overload, load directly
if name.startswith("_"):
if name[1:] in glob:
Expand Down

0 comments on commit 7ffbd1b

Please sign in to comment.