potiuk commented on code in PR #31401:
URL: https://github.com/apache/airflow/pull/31401#discussion_r1198362576
##########
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:
How about just `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]