fix crash if music directory is created in between existence check and mkdir call
This commit is contained in:
parent
e63652b0f7
commit
0085fbc999
1 changed files with 1 additions and 2 deletions
3
app.py
3
app.py
|
@ -303,8 +303,7 @@ signal.signal(signal.SIGTERM, sigh)
|
|||
signal.signal(signal.SIGINT, sigh)
|
||||
cleanup_unclean()
|
||||
|
||||
if not music_path.exists():
|
||||
music_path.mkdir()
|
||||
music_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue