mirror of
https://github.com/infeeeee/dyn2py
synced 2025-12-16 22:16:18 +01:00
Fix FileNotFound not catched
This commit is contained in:
@@ -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")
|
||||||
|
try:
|
||||||
f.update_dynamo(options)
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user