Eisuke Kawashima 2022-02-03 19:35:01 +09:00 committed by GitHub
parent 2e46d64db7
commit 85e7b7d615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 36 additions and 28 deletions

View file

@ -219,7 +219,7 @@ def process_file(fn, allow_modifications):
orig_lines = orig_content.decode("utf8").split("\n")
new_lines = new_content.decode("utf8").split("\n")
diff = unified_diff(orig_lines, new_lines, "before", "after", lineterm="")
except:
except Exception:
diff = [] #
raise Exception(f"File modified:\n" + "\n".join(diff))