The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Software Development Kit (SDK) and API Discussions

Python NaElement sys.exit

RobertSimac

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

2 REPLIES 2

asulliva

Hi @RobertSimac,

 

Wanted to give you an update...a BURT (#1066094) has been created to address this issue.  Please reach out if there's anything I can do!

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

asulliva

Hello Robert,

 

I wanted to take a moment to let you, and the community, know that your questions are not being ignored.  I'm working with the product management for NMSDK to discover the answers to your questions.  I have also asked some of our more experienced developers if they have any thoughts on the matter.

 

 

Finally, thank you for your excellent question.  We want NMSDK to be as good as possible, even if that means asking hard questions sometimes!  Please feel free to reach out to me at any time if I can help.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public