[flake8-bugbear] Re-raise all exceptions with proper exception chaining

This commit is contained in:
Pierre Sassoulas
2024-02-04 11:13:47 +01:00
parent 7eef4619d5
commit fcb818b73c
4 changed files with 8 additions and 9 deletions

View File

@@ -79,7 +79,7 @@ def prepare_release_pr(
)
except InvalidFeatureRelease as e:
print(f"{Fore.RED}{e}")
raise SystemExit(1)
raise SystemExit(1) from None
print(f"Version: {Fore.CYAN}{version}")