Skip to content

yggdrasil.http_.exceptions

exceptions

Stdlib-only HTTP exception hierarchy + exceptions namespace.

Mirrors the urllib3.exceptions shape so the transport layer :mod:yggdrasil.http_.session and the public :mod:yggdrasil.exceptions.http hierarchy can reuse the same base classes without taking a urllib3 runtime dependency. :func:disable_warnings is bundled here because its only argument is one of the :class:SecurityWarning subclasses defined alongside.

HTTPError

Bases: Exception

Root of the stdlib-shim urllib3 exception hierarchy.

disable_warnings

disable_warnings(category: type = SecurityWarning) -> None

Filter out warnings of category (default :class:SecurityWarning).