Bug fixes

More expression tensor operations
Make the return expression handler actually work
This commit is contained in:
blepping
2026-07-11 10:44:15 -06:00
parent ee59df94e3
commit 5ea059bed5
6 changed files with 158 additions and 10 deletions
+3 -1
View File
@@ -62,10 +62,12 @@ class BaseHandler:
def __call__(self, obj, *, getter):
try:
val = self.handle(obj, getter)
return self.validate_output(obj, val)
except ExpReturn:
raise
except Exception as exc:
tb = traceback.format_exc()
raise HandlerError(f'Error evaluating "{obj.name}": {exc!s}\n{tb}') from exc
return self.validate_output(obj, val)
def safe_get(self, key, obj, getter=None, *, default=Empty):
str_key = isinstance(key, str)