Skip to content

Conversation

@theo-brown
Copy link

@theo-brown theo-brown commented Aug 18, 2025

Fixes #21 by simply removing the try/except block.

There may be other options that are preferable, but I found that the exceptions raised if the solver fails are useful. It looks like the intention with the try/except was to just catch if the initial guess failed, but as no exception handling was present it just skipped. If the initial guess fails, it's useful to know why, so I think it's best to just raise the exception directly.

If you would like specific handling, I could keep the try except and then raise the original exception with an additional note that this was on the initial guess.

@kpentland kpentland added the ready-for-final-tests Pull request is ready to run final pre-merge tests label Aug 21, 2025
@georgeholt1 georgeholt1 added ready-for-final-tests Pull request is ready to run final pre-merge tests and removed ready-for-final-tests Pull request is ready to run final pre-merge tests labels Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-final-tests Pull request is ready to run final pre-merge tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Silent failure in GSstaticsolver due to bare try/except block

3 participants