From 4d130d6d7353a554971619bf8e3b380594b49af5 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Wed, 9 Oct 2024 18:59:44 +0200 Subject: [PATCH] suppress instead --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 9cbdfd6..47e769b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -7,6 +7,7 @@ from __future__ import annotations # -- Path setup -------------------------------------------------------------- +from contextlib import suppress import sys from datetime import datetime from importlib.metadata import metadata @@ -147,5 +148,5 @@ def setup(app: Sphinx) -> None: """Setup lamindb for CI.""" import lamindb as ln - if ln.connect("anonymous/lamindb") is not None: + with suppress(RuntimeError): ln.setup.init(storage="/tmp/lamindb")