How to catch API exception from within PythonScript

Since there is no try…catch structure in PythonScript, how can we catch the exceptions while calling Revit API in Python script?

Try:
Except:

https://docs.python.org/2/tutorial/errors.html

1 Like