Skip to content
Snippets Groups Projects
Commit d35b4ed0 authored by Campbell Barton's avatar Campbell Barton
Browse files

code_clean: convert an error to a warning when output can't be created

parent 2ab59df2
No related branches found
No related tags found
No related merge requests found
......@@ -1187,7 +1187,12 @@ def wash_source_with_edits(arg_group: Tuple[str, str, str, str, bool, Any]) -> N
keep_edits=False,
)
if not os.path.exists(output):
raise Exception("Failed to produce output file: " + output)
# raise Exception("Failed to produce output file: " + output)
# NOTE(@campbellbarton): This fails very occasionally and needs to be investigated why.
# For now skip, as it's disruptive to force-quit in the middle of all other changes.
print("Failed to produce output file, skipping:", output)
return
output_bytes = file_as_bytes(output)
# Dummy value that won't cause problems.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment