mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2024-11-11 01:27:35 +08:00
修bug
This commit is contained in:
parent
81eb8e5376
commit
fcb1a25227
@ -230,6 +230,7 @@ def __main__():
|
|||||||
|
|
||||||
if clearLog:
|
if clearLog:
|
||||||
print(READABLETEXT[2])
|
print(READABLETEXT[2])
|
||||||
|
err = True
|
||||||
try:
|
try:
|
||||||
if os.path.exists('./log/'):
|
if os.path.exists('./log/'):
|
||||||
shutil.rmtree('./log/')
|
shutil.rmtree('./log/')
|
||||||
@ -237,8 +238,12 @@ def __main__():
|
|||||||
shutil.rmtree('./logs/')
|
shutil.rmtree('./logs/')
|
||||||
if os.path.exists('./cache/'):
|
if os.path.exists('./cache/'):
|
||||||
shutil.rmtree('./cache/')
|
shutil.rmtree('./cache/')
|
||||||
|
err = False
|
||||||
except ZeroDivisionError: # 程序规范修改:根据新的语法标准:except后面不能没有错误类型,所以既然是pass就随便填一个错误
|
except ZeroDivisionError: # 程序规范修改:根据新的语法标准:except后面不能没有错误类型,所以既然是pass就随便填一个错误
|
||||||
print(READABLETEXT[3])
|
print(READABLETEXT[3])
|
||||||
|
finally:
|
||||||
|
if err is True:
|
||||||
|
print(READABLETEXT[3])
|
||||||
|
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user