Commit c6b79943 authored by ∞'s avatar 💻

Fix entrypoint not found exception message

parent 62dc12e2
......@@ -103,6 +103,11 @@ class Group(Callable, BaseGroup):
if doc:
self.doc = doc
def factory(cls, name, module_name):
doc = Importable.factory(module_name).doc
return cls(name, doc).add_module(module_name)
class ConsoleScript(BaseGroup):
def __init__(self, doc=None, argv=None, default_command='help'):
......@@ -30,7 +30,7 @@ def autotest(path, cmd, ignore=None):
name = cmd.split(' ')[0]
ep = entrypoint_get(name)
if not ep:
raise Exception('Could not find entrypoint {name}')
raise Exception(f'Could not find entrypoint {name}')
console_script = ep.load()
console_script.argv = shlex.split(cmd)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment