Close the ToolManager, swallowing any exception during shutdown.
(tm)
| 138 | |
| 139 | |
| 140 | async def _safe_close(tm) -> None: |
| 141 | """Close the ToolManager, swallowing any exception during shutdown.""" |
| 142 | try: |
| 143 | await tm.close() |
| 144 | except Exception as e: # noqa: BLE001 |
| 145 | logger.debug("Error during ToolManager close: %s", e) |
| 146 | |
| 147 | |
| 148 | # --------------------------------------------------------------------------- # |