mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-26 22:37:11 -05:00
Make sure downloads_dir exists after loading settings
This commit is contained in:
parent
29d2518911
commit
250dbf9199
@ -146,6 +146,12 @@ class Settings(object):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Make sure downloads_dir exists
|
||||||
|
try:
|
||||||
|
os.makedirs(self.get('downloads_dir'), exist_ok=True)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
"""
|
"""
|
||||||
Save settings to file.
|
Save settings to file.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user