Skip to content

Commit

Permalink
suppress instead
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Oct 9, 2024
1 parent 40ade82 commit 4d130d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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")

0 comments on commit 4d130d6

Please sign in to comment.