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



##########
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:
       Should we check file extension before opening it and open only `.py` 
files?




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