Skip to content

Commit

Permalink
reckless: handle failure to find entrypoint cleanly
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev committed Aug 6, 2024
1 parent b6790d9 commit d4fa4de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/reckless
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,11 @@ def uninstall(plugin_name: str) -> str:
assert isinstance(plugin_name, str)
log.debug(f'Uninstalling plugin {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():
log.error("cannot find installed plugin at expected path"
f"{inst.entry}")
Expand Down

0 comments on commit d4fa4de

Please sign in to comment.