SameerMesiah97 commented on code in PR #64119:
URL: https://github.com/apache/airflow/pull/64119#discussion_r3109678589
##########
providers/airbyte/src/airflow/providers/airbyte/operators/airbyte.py:
##########
@@ -127,7 +127,7 @@ def execute_complete(self, context: Context, event: Any =
None) -> None:
"""
if event["status"] == "error":
self.log.debug("Error occurred with context: %s", context)
- raise AirflowException(event["message"])
+ raise RuntimeError(event["message"])
Review Comment:
The `event` payload is not expected to be `None` or have no `"message"` key
under no normal operation. Arguably, we could add a guard and raise an error
iif that is the case but this diverges from the pattern established in the
`execute_complete` methods for the other operators.
--
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]