Skip to content

Commit 0812d9d

Browse files
committed
Fix modularization regression
1 parent 7119726 commit 0812d9d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sage/features/sloane_database.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ def __init__(self):
4040

4141
def _is_present(self):
4242
r"""
43-
Return whether the database is installed.
43+
Return whether the database is available.
4444
4545
EXAMPLES::
4646
4747
sage: from sage.features.sloane_database import SloaneOEIS
4848
sage: bool(SloaneOEIS().is_present()) # optional - !sloane_database
4949
False
5050
"""
51-
from sage.databases.sloane import SloaneEncyclopedia
51+
try:
52+
from sage.databases.sloane import SloaneEncyclopedia
53+
except ImportError:
54+
return False
5255
return SloaneEncyclopedia.is_installed()
5356

5457

0 commit comments

Comments
 (0)