mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-10 03:37:28 -03:00
Make sure downloads_dir exists after loading settings
This commit is contained in:
parent
29d2518911
commit
250dbf9199
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue