mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +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)
|
assert isinstance(plugin_name, str)
|
||||||
log.debug(f'Uninstalling plugin {plugin_name}')
|
log.debug(f'Uninstalling plugin {plugin_name}')
|
||||||
disable(plugin_name)
|
disable(plugin_name)
|
||||||
inst = InferInstall(plugin_name)
|
try:
|
||||||
|
inst = InferInstall(plugin_name)
|
||||||
|
except NotFoundError as err:
|
||||||
|
log.error(err)
|
||||||
|
return "uninstall failed"
|
||||||
if not Path(inst.entry).exists():
|
if not Path(inst.entry).exists():
|
||||||
log.error("cannot find installed plugin at expected path"
|
log.error("cannot find installed plugin at expected path"
|
||||||
f"{inst.entry}")
|
f"{inst.entry}")
|
||||||
|
Loading…
Reference in New Issue
Block a user