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

Fix hidden context manager exception handling #70

Merged

Conversation

sebageek
Copy link
Contributor

When an exception is raised inside the exception block we need to make
sure that the hidden level/unhide logic is executed regardless.


I showed #68 to @hartwork and he asked why I'm not using a try-finally construct. He has a point. ;)

When an exception is raised inside the exception block we need to make
sure that the hidden level/unhide logic is executed regardless.
Copy link
Owner

@pavdmyt pavdmyt left a comment

Choose a reason for hiding this comment

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

Proposing some minor change. Everything else looks good 👍

tests/test_in_out.py Outdated Show resolved Hide resolved
@pavdmyt pavdmyt merged commit 5f2b64f into pavdmyt:master Aug 19, 2020
@pavdmyt
Copy link
Owner

pavdmyt commented Aug 19, 2020

@sebageek @hartwork Thanks for the fix! Will include this into the next release.

@pavdmyt
Copy link
Owner

pavdmyt commented Aug 19, 2020

Seems there is a broken test under pypy2 in recent build: https://travis-ci.org/github/pavdmyt/yaspin/jobs/719239699
Need to investigate further.

@pavdmyt
Copy link
Owner

pavdmyt commented Oct 4, 2020

Included in v1.1.0, also available at PyPI.

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