Skip to content

Formula: Show Exception in cell #1627

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tennox opened this issue May 20, 2025 · 0 comments
Open

Formula: Show Exception in cell #1627

tennox opened this issue May 20, 2025 · 0 comments

Comments

@tennox
Copy link

tennox commented May 20, 2025

Describe the problem to be solved

In case e.g. a cell the formula depends on is empty, I raise an exception:

if $End is None:
  raise Exception( "End missing")
($End - $Start).total_seconds() / 3600

But the cell just shows:
Image
(It shows the exception name when I double-click into the formula editor)

Describe the solution you would like

I'd love to see the exception message in the cell (instead of the word "Exception" - which is already apparent by the cell being red, imho)

I've also considered returning a literal string instead of an exception, but then downstream formulas result in an opaque type error instead of the clear error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant