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

B904 error from codeformat #2939

Closed
wyli opened this issue Sep 13, 2021 · 0 comments · Fixed by #2940
Closed

B904 error from codeformat #2939

wyli opened this issue Sep 13, 2021 · 0 comments · Fixed by #2940
Assignees

Comments

@wyli
Copy link
Contributor

wyli commented Sep 13, 2021

Describe the bug
the code format checker raises new errors:

/home/runner/work/MONAI/MONAI/monai/data/grid_dataset.py:144:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/monai/data/utils.py:286:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/monai/data/utils.py:297:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/monai/utils/aliases.py:74:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/monai/transforms/inverse_batch_transform.py:102:13: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/monai/_extensions/loader.py:37:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
/home/runner/work/MONAI/MONAI/tests/utils.py:77:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
7     B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling.  See https://docs.python.org/3/tutorial/errors.html#exception-chaining for details.
7
Check failed!
@wyli wyli self-assigned this Sep 13, 2021
wyli added a commit to wyli/MONAI that referenced this issue Sep 13, 2021
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@wyli wyli mentioned this issue Sep 13, 2021
2 tasks
wyli added a commit that referenced this issue Sep 13, 2021
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
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 a pull request may close this issue.

1 participant