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

Add error propagation from child thread to main thread #142

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

rao-aneesh
Copy link
Contributor

A try/except block is added in the enqueue_updates method to catch any exceptions during the subscription process. These exceptions are stored in a new attribute self.error, making them accessible in the main thread.

As a result of this change, the caller should check self.error after each operation to handle any potential exceptions raised in the child thread.

A try/except block is added in the `enqueue_updates` method to catch any exceptions during the subscription process. These exceptions are stored in a new attribute `self.error`, making them accessible in the main thread.

As a result of this change, the caller should check `self.error` after each operation to handle any potential exceptions raised in the child thread.
@rao-aneesh
Copy link
Contributor Author

Trying to solve this: #104

@jhanm12
Copy link

jhanm12 commented Dec 19, 2023

@brunoonovais Can you please check this.

@akarneliuk akarneliuk merged commit 1c0cccf into akarneliuk:master Dec 20, 2023
@akarneliuk
Copy link
Owner

Looks ok @AscendedEntity , let's see how tests will work out.

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.

None yet

3 participants