Fix FileNotFound not catched

This commit is contained in:
2023-03-30 02:54:53 +02:00
parent 2a6c42829f
commit 0c2174525e

View File

@@ -199,7 +199,10 @@ def run(options: Options) -> None:
elif f.is_python_file(): elif f.is_python_file():
logging.debug("Source is a Python file") logging.debug("Source is a Python file")
f.update_dynamo(options) try:
f.update_dynamo(options)
except FileNotFoundError:
logging.error(f"Source Dynamo file not found! {f.filepath}")
# Write files at the end: # Write files at the end:
for f in DynamoFile.open_files | PythonFile.open_files: for f in DynamoFile.open_files | PythonFile.open_files: