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

Convert exc_to_msg to a class decorator #2840

Open
n1mus opened this issue Mar 29, 2022 · 0 comments
Open

Convert exc_to_msg to a class decorator #2840

n1mus opened this issue Mar 29, 2022 · 0 comments

Comments

@n1mus
Copy link
Contributor

n1mus commented Mar 29, 2022

Currently exc_to_msg is a context manager that must be invoked before calling any JobComm code in order to transform all exceptions into comm errors. Converting it into a class decorator for JobComm would simplify all invocations of JobComm code and remove margins for error forgetting to invoke the context manager.

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

No branches or pull requests

1 participant