eladkal commented on a change in pull request #14344:
URL: https://github.com/apache/airflow/pull/14344#discussion_r580118168



##########
File path: 
airflow/upgrade/rules/chain_between_dag_and_operator_not_allowed_rule.py
##########
@@ -36,7 +36,7 @@ def _change_info(self, file_path, line_number):
 
     def _check_file(self, file_path):
         problems = []
-        with open(file_path, "r") as file_pointer:
+        with open(file_path, "r", errors="ignore") as file_pointer:

Review comment:
       Do you need also a "Unable to read python file" message like added in 
https://github.com/apache/airflow/pull/13371 ? 




----------------------------------------------------------------
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]


Reply via email to