Skip to content

Commit

Permalink
Avoid deleted README be trans
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin-jun-xiang authored Nov 2, 2023
1 parent 5e550c0 commit 46eb3cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ async def main():

prefix_path = extract_prefix(file)

if not os.path.exists(file):
print(f'{file} was delete in this commit')
continue

with open(file, "r", encoding="utf-8") as f:
content = f.read()

Expand Down

0 comments on commit 46eb3cd

Please sign in to comment.