Skip to content

Commit c9d7411

Browse files
committed
fix text in LoadModule.
1 parent c9ac8e0 commit c9d7411

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

mathics/builtin/assignment.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ class LoadModule(Builtin):
17511751
: Python module nomodule does not exist.
17521752
= $Failed
17531753
>> LoadModule["sys"]
1754-
: Python module sys does not exist.
1754+
: Python module sys is not a pymathics module.
17551755
= $Failed
17561756
"""
17571757
name = "LoadModule"
@@ -1768,9 +1768,6 @@ def apply(self, module, evaluation):
17681768
except ImportError as e:
17691769
evaluation.message(self.get_name(), 'notfound', module)
17701770
return SymbolFailed
1771-
except PyMathicsLoadException as e:
1772-
evaluation.message(self.get_name(), 'notmathicslib', module)
1773-
return SymbolFailed
17741771
else:
17751772
# Add Pymathics` to $ContextPath so that when user don't
17761773
# have to qualify Pymathics variables and functions,

mathics/core/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def load_pymathics_module(self, module, remove_on_quit=True):
115115
from an external Python module in the pymathics module namespace.
116116
"""
117117
import importlib
118-
from mathics.builtin import is_builtin, builtins, builtins_by_module, Builtin
118+
from mathics.builtin import is_builtin, builtins_by_module, Builtin
119119
# Ensures that the pymathics module be reloaded
120120
import sys
121121
if module in sys.modules:

0 commit comments

Comments
 (0)