mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
reckless: handle failure to find entrypoint cleanly
This commit is contained in:
parent
dff7b50040
commit
9a7481b532
@ -1341,7 +1341,11 @@ def uninstall(plugin_name: str) -> str:
|
||||
assert isinstance(plugin_name, str)
|
||||
log.debug(f'Uninstalling plugin {plugin_name}')
|
||||
disable(plugin_name)
|
||||
try:
|
||||
inst = InferInstall(plugin_name)
|
||||
except NotFoundError as err:
|
||||
log.error(err)
|
||||
return "uninstall failed"
|
||||
if not Path(inst.entry).exists():
|
||||
log.error("cannot find installed plugin at expected path"
|
||||
f"{inst.entry}")
|
||||
|
Loading…
Reference in New Issue
Block a user