-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing exception types to include TypeError, which is what is raised in #40012
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
Can you add unit test to avoid regression? |
@eladkal sure thing. May be a little bit as I've got a busy week coming up, but I will add a unit test for this. EDIT: @o-nikolas added a unit test for this in #40035. |
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
A unit test which triggers the scenario of a current Celery executor with the new signature of change_state run against an older version of Airflow with the old signature of change_state on the BaseExecutor class. related apache#40011 related apache#39980 related apache#40012
…in (apache#40012) Python 3.12. Fixes apache#40011 Co-authored-by: leake <carl.leake@jpl.nasa.gov>
A unit test which triggers the scenario of a current Celery executor with the new signature of change_state run against an older version of Airflow with the old signature of change_state on the BaseExecutor class. related apache#40011 related apache#39980 related apache#40012
…in (apache#40012) Python 3.12. Fixes apache#40011 Co-authored-by: leake <carl.leake@jpl.nasa.gov>
…in (apache#40012) Python 3.12. Fixes apache#40011 Co-authored-by: leake <carl.leake@jpl.nasa.gov>
A unit test which triggers the scenario of a current Celery executor with the new signature of change_state run against an older version of Airflow with the old signature of change_state on the BaseExecutor class. related apache#40011 related apache#39980 related apache#40012
closes: #40011
related: #39980
This issue closes #40011. It modifies the exception line to include
TypeError
in addition toAttributeError
. In Python 3.12, the error that this exception is trying to catch is raised as aTypeError
rather than anAttributeError
.