ephraimbuddy commented on code in PR #54505:
URL: https://github.com/apache/airflow/pull/54505#discussion_r2429919761
##########
airflow-core/src/airflow/exceptions.py:
##########
@@ -46,26 +42,24 @@ def serialize(self):
return f"{cls.__module__}.{cls.__name__}", (str(self),), {}
-class AirflowBadRequest(AirflowException):
- """Raise when the application or server cannot handle the request."""
-
- status_code = HTTPStatus.BAD_REQUEST
+class TaskNotFound(AirflowException):
Review Comment:
I have tried removing it for all but some like this TaskNotFound are not
able to be serialized when we subclass Exception directly instead of
AirflowException.
--
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]