open-notebook/open_notebook
orihatav 5a350a7622 fix: narrow exception to (ImportError, OSError) and include error in log
Broad 'except Exception' could silently swallow unexpected failures.
URLError and ConnectionError are both subclasses of OSError, so
'except (ImportError, OSError)' captures all real offline/not-installed
cases while letting genuine programming errors propagate.

Also include the exception detail in the warning message so failures
are diagnosable in logs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 19:45:14 -05:00
..
ai Upgrade default Azure API Version for testing and fetching models (#638) 2026-03-10 21:34:36 -03:00
database feat(podcasts): model registry integration, credential passthrough & new features (#632) 2026-02-27 11:06:47 -03:00
domain fix: embedding batch sizing and 413 error classification (1.7.4) 2026-02-18 11:39:47 -03:00
graphs docs: update documentation for error handling and podcast retry (#599) 2026-02-18 09:56:04 -03:00
podcasts feat(podcasts): model registry integration, credential passthrough & new features (#632) 2026-02-27 11:06:47 -03:00
utils fix: narrow exception to (ImportError, OSError) and include error in log 2026-03-10 19:45:14 -05:00
__init__.py refactor: move environment variables loading to application entry point (#283) 2025-12-01 14:59:50 -03:00
CLAUDE.md docs: update documentation for error handling and podcast retry (#599) 2026-02-18 09:56:04 -03:00
config.py fix: handle tiktoken network errors in offline environments (issue #264) 2026-03-10 19:45:14 -05:00
exceptions.py refactor database module and migrations 2024-10-30 16:33:07 -03:00