We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e8e53 commit 94dcd5dCopy full SHA for 94dcd5d
setuptools/_entry_points.py
@@ -2,6 +2,7 @@
2
import operator
3
import itertools
4
5
+from .errors import OptionError
6
from .extern.jaraco.text import yield_lines
7
from .extern.jaraco.functools import pass_none
8
from ._importlib import metadata
@@ -14,7 +15,14 @@ def ensure_valid(ep):
14
15
Exercise one of the dynamic properties to trigger
16
the pattern match.
17
"""
- ep.extras
18
+ try:
19
+ ep.extras
20
+ except AttributeError as ex:
21
+ msg = (
22
+ f"Problems to parse {ep}.\nPlease ensure entry-point follows the spec: "
23
+ "https://packaging.python.org/en/latest/specifications/entry-points/"
24
+ )
25
+ raise OptionError(msg) from ex
26
27
28
def load_group(value, group):
0 commit comments