Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterain98 committed Jul 23, 2022
1 parent 911f78c commit 3cda822
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def unzip(f: str, encoding: str) -> list:
n = Path("Fonts/" + i.encode('utf-8').decode(encoding))
except UnicodeDecodeError:
# Usually JPN
print("UnicodeDecodeError: " + i)
raise UnicodeDecodeError("Unsupported encoding, please manually zip the file...")
if i[-1] == '/':
if not n.exists():
n.mkdir()
Expand Down Expand Up @@ -261,7 +261,6 @@ def is_font_file(f: str) -> bool:

try:
# Clean up
# 创建 Extra 目录
ExtraFolderIsExists = os.path.exists("Extra")
if not ExtraFolderIsExists and len(move_list) >= 1:
os.makedirs("Extra")
Expand Down

0 comments on commit 3cda822

Please sign in to comment.