Skip to content
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

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

callmephilip
Copy link
Contributor

Fix for #321

Copy link
Member

@rgbkrk rgbkrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@rgbkrk
Copy link
Member

rgbkrk commented Dec 18, 2024

@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.

Comment on lines 1106 to 1107
transient = content.get("transient", {})
display_id = transient.get("display_id", None) if transient else None
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can be simply:

Suggested change
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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but of course! 🤦‍♂️

auto-merge was automatically disabled December 19, 2024 08:35

Head branch was pushed to by a user without write access

Copy link
Member

@davidbrochart davidbrochart left a 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.

@davidbrochart davidbrochart merged commit a6628b8 into jupyter:main Dec 19, 2024
19 of 23 checks passed
@davidbrochart
Copy link
Member

@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.

Released in v0.10.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants