Using "Try/except" I guess, using "raise" directly will do just that.
Cheers,
Diogo
On Tue, Mar 11, 2014 at 10:18 AM, Mathias Möhl <[email protected]> wrote:
> Hi,
> what’s the correct way to raise any errors in init.py and ensure that they
> are shown to the user when he is running nuke with UI?
> If I put this in my init.py
> raise Exception("Test”)
> and launch NUKE, I just get a dialog saying "error interpreting this plugin”
> but not “Test”
> Cheers,
> Mathias
> mamoworld.com
> simplify your cgi
> Dr. Mathias Möhl
> Marlow 52 , 18551 Sagard, Germany
> Phone +49 (0)38302 - 88 75 61
> [email protected]_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python