uranusjr commented on code in PR #59879:
URL: https://github.com/apache/airflow/pull/59879#discussion_r2650527518


##########
dev/breeze/src/airflow_breeze/utils/selective_checks.py:
##########
@@ -1409,7 +1409,11 @@ def get_job_label(self, event_type: str, branch: str):
 
         response = requests.get(url, headers=headers, params=payload)
         if response.status_code != 200:
-            get_console().print(f"[red]Error while listing workflow runs 
error: {response.json()}.\n")
+            try:
+                error_msg = response.json()
+            except requests.exceptions.JSONDecodeError:

Review Comment:
   This (and below) should just catch ValueError



-- 
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]

Reply via email to