-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gracefully handle explicit transient=None #322
Gracefully handle explicit transient=None #322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@davidbrochart It's been a while since I've shipped one of these packages and I see the releasing steps have changed quite a bit. I'm happy to merge, however I don't wish to break the flow you've got with this package. |
nbclient/client.py
Outdated
transient = content.get("transient", {}) | ||
display_id = transient.get("display_id", None) if transient else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can be simply:
transient = content.get("transient", {}) | |
display_id = transient.get("display_id", None) if transient else None | |
transient = content.get("transient") | |
display_id = transient.get("display_id") if transient else None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but of course! 🤦♂️
Head branch was pushed to by a user without write access
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @callmephilip.
I'll address the CI failures in #323.
Released in v0.10.2. |
Fix for #321