Skip to content
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

Remove redundant catch exceptions in Amazon Log Task Handlers #26442

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

Taragolis
Copy link
Contributor

Remove catch exception in Amazon Log Task Handlers during configure appropriate Hook.

Seem like that is old code from the time when this log handlers placed in Airflow Core (prior Airflow 2.0).

Also if we catch any error and return None than we still get an error later in a code but something like:
AttributeError: 'NoneType' object has no attribute '{some_awesome_attribute}'

@Taragolis Taragolis force-pushed the aws-logging-redundant-except branch from 383eb67 to 19ffb25 Compare September 17, 2022 07:14
@potiuk potiuk merged commit f51587e into apache:main Sep 19, 2022
@Taragolis Taragolis deleted the aws-logging-redundant-except branch September 19, 2022 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants