summaryrefslogtreecommitdiff
path: root/Biz/Repl.py
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Repl.py')
-rw-r--r--Biz/Repl.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Biz/Repl.py b/Biz/Repl.py
index cd7bad6..6b60d02 100644
--- a/Biz/Repl.py
+++ b/Biz/Repl.py
@@ -43,6 +43,9 @@ def use(ns: str, path: str) -> None:
Load or reload the module named 'ns' from 'path'.
Like `use` in the Guile Scheme repl.
+
+ Raises:
+ ReplError: if module cannot be loaded
"""
logging.info("loading %s from %s", ns, path)
spec = importlib.util.spec_from_file_location(ns, path)
@@ -149,6 +152,9 @@ class CustomRepl:
This is called on `sys.excepthook`, which runs when the repl doesn't
know how to handle some input. So, we inspect `value` and provide
alternate functionality, bottoming out at the default exception.
+
+ Raises:
+ ReplError: if caught exception is empty
"""
# ruff: noqa: PLR0911
if not isinstance(value, SyntaxError):