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

Avoid wildcard except at the top level of the call stack #183

Open
etingof opened this issue Aug 5, 2018 · 0 comments
Open

Avoid wildcard except at the top level of the call stack #183

etingof opened this issue Aug 5, 2018 · 0 comments

Comments

@etingof
Copy link
Owner

etingof commented Aug 5, 2018

The main I/O loops tend to catch all exceptions coming deep from the call stack and re-raise them as PySnmpError. As noted in #167, this prevents user callback from raising their own exceptions and making their way up to the main loop.

The current design should probably be changed in a way that pysnmp code should so this exception catching closer to the actual call of an underlying library (and re-raise if needed). But at the top level of the main loop no exceptions should be caught.

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

No branches or pull requests

1 participant