fix crash if music directory is created in between existence check and mkdir call

This commit is contained in:
deneb 2025-03-03 16:11:29 +01:00
parent e63652b0f7
commit 0085fbc999

3
app.py
View file

@ -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: