josh-fell commented on code in PR #24931:
URL: https://github.com/apache/airflow/pull/24931#discussion_r933608141
##########
tests/utils/test_compression.py:
##########
@@ -54,8 +54,8 @@ def setUp(self):
f_bz2.writelines([header, line1, line2])
# Base Exception so it catches Keyboard Interrupt
- except BaseException as e:
- logging.error(e)
+ except BaseException:
+ logging.exception("An exception has occurred.")
Review Comment:
Shuffled some pieces around and now this test is using a fixture for
teardown activity + converted to `pytest` since I was messing around anyway.
--
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]