This commit is contained in:
bgArray 2022-01-19 18:03:52 +08:00
parent 81eb8e5376
commit fcb1a25227

View File

@ -230,6 +230,7 @@ def __main__():
if clearLog:
print(READABLETEXT[2])
err = True
try:
if os.path.exists('./log/'):
shutil.rmtree('./log/')
@ -237,8 +238,12 @@ def __main__():
shutil.rmtree('./logs/')
if os.path.exists('./cache/'):
shutil.rmtree('./cache/')
err = False
except ZeroDivisionError: # 程序规范修改根据新的语法标准except后面不能没有错误类型所以既然是pass就随便填一个错误
print(READABLETEXT[3])
finally:
if err is True:
print(READABLETEXT[3])
exit()