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

[develop] Throw specific Exception instead of generic one #1645

Merged
merged 2 commits into from
Jan 17, 2023

Conversation

lukeseawalker
Copy link
Contributor

@lukeseawalker lukeseawalker commented Jan 16, 2023

Signed-off-by: Luca Carrogu carrogu@amazon.com

Description of changes

Throw specific Exception instead of generic one

This to solve check flake8 B017

Also disable B028 flake8-bugbear lint check recently implemented.
The check is going to be disabled by the flake8-bugbear developers. See Rename B028 to B907, making it optional/opinionated. PyCQA/flake8-bugbear#333

Fix color formatting on flake8 style offenses.

Tests

unit tested

References

n/a

Checklist

  • Make sure you are pointing to the right branch and add a label in the PR title (i.e. 2.x vs 3.x)
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

Please review the guidelines for contributing and Pull Request Instructions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lukeseawalker lukeseawalker force-pushed the wip/fixB017 branch 2 times, most recently from 38c7445 to ff67b7b Compare January 16, 2023 17:24
@lukeseawalker lukeseawalker changed the title [develop] Through proper expection [develop] Throw proper Exception instead of generic one Jan 16, 2023
@lukeseawalker lukeseawalker force-pushed the wip/fixB017 branch 6 times, most recently from 7a27c6c to 1c7d7d9 Compare January 17, 2023 07:55
@lukeseawalker lukeseawalker changed the title [develop] Throw proper Exception instead of generic one [develop] Throw specific Exception instead of generic one Jan 17, 2023
@lukeseawalker lukeseawalker force-pushed the wip/fixB017 branch 6 times, most recently from 2109973 to f81ec20 Compare January 17, 2023 08:30
This to solve check flake8 B017

Also disable B028 flake8-bugbear lint check recently implemented.
The check is going to be disabled by the flake8-bugbear developers. See Rename B028 to B907, making it optional/opinionated. PyCQA/flake8-bugbear#333

Fix color formatting on flake8 style offenses.

Signed-off-by: Luca Carrogu <carrogu@amazon.com>
@lukeseawalker lukeseawalker marked this pull request as ready for review January 17, 2023 09:07
@lukeseawalker lukeseawalker requested review from a team as code owners January 17, 2023 09:07
Copy link
Contributor

@francesco-giordano francesco-giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@francesco-giordano francesco-giordano merged commit 1e277d4 into aws:develop Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants