dondaum commented on code in PR #38803:
URL: https://github.com/apache/airflow/pull/38803#discussion_r1556001809
##########
airflow/providers/google/cloud/hooks/dataflow.py:
##########
@@ -252,7 +252,7 @@ def _get_current_jobs(self) -> list[dict]:
self._job_id = jobs[0]["id"]
return jobs
else:
- raise Exception("Missing both dataflow job ID and name.")
+ raise AirflowException("Missing both dataflow job ID and name.")
Review Comment:
Good point. I checked again and yes in makes sense for me to rather use
`ValueError`. Changed.
--
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]