mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-29 01:31:41 +00:00
refactor(timeouts): drop redundant ImportError in except clause
Exception already covers ImportError; (ImportError, Exception) was a cosmetic wart from the bugfix. Pure no-op.
This commit is contained in:
parent
16e243e067
commit
366351b94d
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ def get_provider_request_timeout(
|
|||
try:
|
||||
from hermes_cli.config import load_config
|
||||
config = load_config()
|
||||
except (ImportError, Exception):
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
providers = config.get("providers", {}) if isinstance(config, dict) else {}
|
||||
|
|
@ -50,7 +50,7 @@ def get_provider_stale_timeout(
|
|||
try:
|
||||
from hermes_cli.config import load_config
|
||||
config = load_config()
|
||||
except (ImportError, Exception):
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
providers = config.get("providers", {}) if isinstance(config, dict) else {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue