jedcunningham commented on code in PR #31401:
URL: https://github.com/apache/airflow/pull/31401#discussion_r1198390144


##########
airflow/utils/file.py:
##########
@@ -388,7 +388,7 @@ def iter_airflow_imports(file_path: str) -> Generator[str, 
None, None]:
     """Find Airflow modules imported in the given file."""
     try:
         parsed = ast.parse(Path(file_path).read_bytes())
-    except (OSError, SyntaxError, UnicodeDecodeError):
+    except (OSError, SyntaxError, UnicodeDecodeError, ValueError):

Review Comment:
   ```suggestion
       except Exception:
   ```



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

Reply via email to