MCPcopy
hub / github.com/AstrBotDevs/AstrBot / configure_runtime_ca_bundle

Function configure_runtime_ca_bundle

runtime_bootstrap.py:36–44  ·  view source on GitHub ↗
(log_obj: Any | None = None)

Source from the content-addressed store, hash-verified

34
35
36def configure_runtime_ca_bundle(log_obj: Any | None = None) -> bool:
37 log = log_obj or logger
38
39 try:
40 ssl_context = build_ssl_context_with_certifi(log_obj=log)
41 return _try_patch_aiohttp_ssl_context(ssl_context, log_obj=log)
42 except Exception as exc:
43 log.error("Failed to configure runtime CA bundle for aiohttp: %r", exc)
44 return False
45
46
47def initialize_runtime_bootstrap(log_obj: Any | None = None) -> bool:

Callers 1

Calls 3

errorMethod · 0.45

Tested by

no test coverage detected