Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

ScriptEditor why Try Catch is not default option?

$
0
0

The debugging of Python in Grasshopper Script editor often does not show exact line of error.

I most often need to wrap my code around try statement:

        try:
             ...
        except Exception as e:
            import traceback
            traceback.print_exc()

I am wondering why this is not default case?
For instance I get an error, it names or does not, and does not tell exact line. It feels there is some sort of try catch statement in ScriptEditor but it is not fully printed for a user…

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles