potiuk commented on code in PR #38489:
URL: https://github.com/apache/airflow/pull/38489#discussion_r1539723940
##########
scripts/in_container/update_quarantined_test_status.py:
##########
@@ -202,14 +202,14 @@ def get_table(history_map: dict[str, TestHistory]) -> str:
print(f"Token: {token}")
github_repository = os.environ.get("GITHUB_REPOSITORY")
if not github_repository:
- raise Exception("GitHub Repository must be defined!")
+ raise ValueError("GitHub Repository must be defined!")
user, repo = github_repository.split("/")
print(f"User: {user}, Repo: {repo}")
issue_id = int(os.environ.get("ISSUE_ID", 0))
num_runs = int(os.environ.get("NUM_RUNS", 10))
if issue_id == 0:
- raise Exception("You need to define ISSUE_ID as environment variable")
+ raise ValueError("You need to define ISSUE_ID as environment variable")
Review Comment:
RuntimeError - this 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]