()
| 226 | return None |
| 227 | |
| 228 | def _runner() -> None: |
| 229 | try: |
| 230 | wait_for_http(url, timeout_seconds) |
| 231 | except Exception as exc: |
| 232 | log(f"浏览器自动打开前的可访问性检测失败: {exc}", "WARN") |
| 233 | return |
| 234 | webbrowser.open(url) |
| 235 | log(f"已尝试打开浏览器: {url}") |
| 236 | |
| 237 | thread = threading.Thread(target=_runner, name="webui-browser", daemon=True) |
| 238 | thread.start() |
nothing calls this directly
no test coverage detected