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

Don't die when masking log.exception when there is no exception #16047

Merged
merged 1 commit into from
May 25, 2021

Conversation

ashb
Copy link
Member

@ashb ashb commented May 25, 2021

It is possible that exc_info can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the NoneType: None line is the exception being
logged.)


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)
@ashb ashb added the kind:bug This is a clearly a bug label May 25, 2021
@ashb ashb added this to the Airflow 2.1.1 milestone May 25, 2021
@ashb ashb requested a review from kaxil May 25, 2021 10:10
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label May 25, 2021
@ashb ashb merged commit 2f77633 into apache:master May 25, 2021
@kaxil kaxil deleted the mask-exception-when-no-exc branch June 2, 2021 21:37
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jun 2, 2021
…ache#16047)

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)

(cherry picked from commit 2f77633)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jun 2, 2021
…ache#16047)

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)

(cherry picked from commit 2f77633)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Jun 2, 2021
…ache#16047)

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)

(cherry picked from commit 2f77633)
(cherry picked from commit c4c2ab2)
jhtimmins pushed a commit to astronomer/airflow that referenced this pull request Jun 3, 2021
…ache#16047)

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)

(cherry picked from commit 2f77633)
ashb added a commit that referenced this pull request Jun 22, 2021
…6047)

It is possible that `exc_info` can be set, but contain no exception.

We shouldn't fail in this case, even if the output doesn't make sense as
shown by the test (the `NoneType: None` line is the exception being
logged.)

(cherry picked from commit 2f77633)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging full tests needed We need to run full set of tests for this PR to merge kind:bug This is a clearly a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants