1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-19 19:01:03 +00:00

Used Python2-friendly syntax in creating new directories

This commit is contained in:
Taizo Simpson 2018-10-08 21:21:26 -04:00
parent a2add86550
commit 00b043dda6
No known key found for this signature in database
GPG Key ID: D197B1197B2D4D68

View File

@ -146,7 +146,8 @@ def cover_art():
if not art:
raise NotFound('Cover art')
#Art found, save to cache
os.makedirs(embed_cache, exist_ok=True)
if not os.path.exists(embed_cache):
os.makedirs(embed_cache)
with open(cover_path, 'wb') as cover_file:
cover_file.write(art)
else: