Skip to content

Fix lock is not owned error in error handling block #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

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

michalsosn
Copy link
Contributor

Whenever any exception is thrown from the block doing the api calls, it's causes a second error

line 278, in notify
    assert self._lock._semlock._is_mine(), 'lock is not owned'

because of a missing lock acquisition in the except block.

Simply acquiring it seems safe, given that the other except block does just that.

@michalsosn michalsosn merged commit f4fc266 into main Oct 22, 2024
4 checks passed
@michalsosn michalsosn deleted the ms/fix-lock-is-not-owned branch October 22, 2024 09:15
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.

2 participants