mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
refactor: enhance error handling in user prompts
- Updated exception handling in multiple prompt functions to catch NotImplementedError alongside ImportError, improving robustness across the application. - Ensured fallback mechanisms are clearly documented for better understanding of platform limitations.
This commit is contained in:
parent
cd66546e24
commit
3c5bf5b9d8
4 changed files with 8 additions and 8 deletions
|
|
@ -231,7 +231,7 @@ def _prompt_provider_choice(choices):
|
|||
idx = menu.show()
|
||||
print()
|
||||
return idx
|
||||
except ImportError:
|
||||
except (ImportError, NotImplementedError):
|
||||
pass
|
||||
|
||||
# Fallback: numbered list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue