mik-laj commented on issue #8279: URL: https://github.com/apache/airflow/pull/8279#issuecomment-616686756
1. For DAG ID and Task ID, you could use `airflow.utils.helpers.validate_key`. For execution_date, I'm afraid there is no such function yet, but it should not be difficult to write it. 2. We should not put the whole view in a try-catch block, but you may use the try-catch code block somewhere. We should handle all the problems we can in the code. Exceptions to the screen should only be displayed if there is no other solution. In this case, we know another solution - we can display a clear error message and redirect to the home page. ---------------------------------------------------------------- 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]
