Send Mail When an Error Occurs

I have a fish function created that allows me to send a mail when the numerical model is completely resolved. How can I make this fish function execute and send me a mail when an error occurs in the resolution of the model?

You can call it using python and try-except statement

1 Like

Something like this (as Gian said) in a .py file:

[space]it.command(“cycle 100”)
[space]# do something, e.g., send email, when there is a problem

1 Like