mirror of
https://github.com/onionshare/onionshare.git
synced 2025-02-14 21:51:32 -05:00
Make sure downloads_dir exists after loading settings
This commit is contained in:
parent
87d47d60f1
commit
507cb837ab
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user