It appears there is sys.exit() being called from within the NaElement.py, at various places, L317, 234, 260...
I find that 'very disturbing' 🙂 but would like to hear opinions and reasoning behind that coding decision.
I expect apis not to sys.exit on its own. Do throw an 'normal' exception, return false, but please do not sys.exit ...
Users may be calling NaElement from their server/daemon processes and they may not expect such strong exception to be thrown from within the api
I know the sys.exit is ultimately an exception, but our sdk users may not be aware we throw such strong exception which cannot be caught by normal 'except Exception as e'...
https://docs.python.org/2/library/exceptions.html#exceptions.SystemExit
But I may be missing something, thus the post here...
Thanks
Robert