potiuk commented on code in PR #38489:
URL: https://github.com/apache/airflow/pull/38489#discussion_r1539722263
##########
scripts/ci/pre_commit/pre_commit_update_versions.py:
##########
@@ -31,7 +31,7 @@ def update_version(pattern: re.Pattern, v: str, file_path:
Path):
with file_path.open("r+") as f:
file_content = f.read()
if not pattern.search(file_content):
- raise Exception(f"Pattern {pattern!r} doesn't found in
{file_path!r} file")
+ raise LookupError(f"Pattern {pattern!r} doesn't found in
{file_path!r} file")
Review Comment:
RuntimeError - should never happen
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]