We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7119726 commit 0812d9dCopy full SHA for 0812d9d
src/sage/features/sloane_database.py
@@ -40,15 +40,18 @@ def __init__(self):
40
41
def _is_present(self):
42
r"""
43
- Return whether the database is installed.
+ Return whether the database is available.
44
45
EXAMPLES::
46
47
sage: from sage.features.sloane_database import SloaneOEIS
48
sage: bool(SloaneOEIS().is_present()) # optional - !sloane_database
49
False
50
"""
51
- from sage.databases.sloane import SloaneEncyclopedia
+ try:
52
+ from sage.databases.sloane import SloaneEncyclopedia
53
+ except ImportError:
54
+ return False
55
return SloaneEncyclopedia.is_installed()
56
57
0 commit comments