nuclearpinguin commented on a change in pull request #5883: [AIRFLOW-5194] Add
error handler to action log
URL: https://github.com/apache/airflow/pull/5883#discussion_r316781690
##########
File path: airflow/utils/cli_action_loggers.py
##########
@@ -94,8 +94,11 @@ def default_action_log(log, **_):
:param **_: other keyword arguments that is not being used by this function
:return: None
"""
- with create_session() as session:
- session.add(log)
+ try:
+ with create_session() as session:
+ session.add(log)
+ except Exception as error:
Review comment:
Is it possible to specify what exception exactly we want to catch here?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services