Make sure downloads_dir exists after loading settings

This commit is contained in:
Micah Lee 2018-11-25 17:34:06 -08:00
parent 29d2518911
commit 250dbf9199
No known key found for this signature in database
GPG key ID: 403C2657CD994F73

View file

@ -146,6 +146,12 @@ class Settings(object):
except:
pass
# Make sure downloads_dir exists
try:
os.makedirs(self.get('downloads_dir'), exist_ok=True)
except:
pass
def save(self):
"""
Save settings to file.