{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / history / _db_errors

_lru_cache_wrapper

IPython.core.history:_db_errors

source: /dev/ipython/IPython/core/history.py:95

Signature

def _db_errors() → tuple[type[BaseException], ...]

Summary

The sqlite3 errors to catch, or an empty tuple if it is unavailable.

Extended Summary

An empty tuple in an except clause simply never matches, which is the right behaviour when there is no database to fail in the first place.

Aliases

  • IPython.core.history._db_errors