Don't panic when .arl is not writable
This commit is contained in:
parent
6e10a30c48
commit
d26b1cfe46
|
@ -48,8 +48,11 @@ def download(url, bitrate, portable, path):
|
|||
arl = f.readline().rstrip("\n").strip()
|
||||
if not dz.login_via_arl(arl): arl = requestValidArl()
|
||||
else: arl = requestValidArl()
|
||||
with open(configFolder / '.arl', 'w', encoding="utf-8") as f:
|
||||
f.write(arl)
|
||||
try:
|
||||
with open(configFolder / '.arl', 'w', encoding="utf-8") as f:
|
||||
f.write(arl)
|
||||
except:
|
||||
print(f"Error opening {configFolder / '.arl'}, continuing anyway.")
|
||||
|
||||
plugins = {}
|
||||
if Spotify:
|
||||
|
|
Loading…
Reference in New Issue