mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08: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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user