mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Tests are failing because a receive mode dir already exists, so this makes them pass
This commit is contained in:
parent
2fcedb8730
commit
f854b3ff37
@ -137,7 +137,7 @@ class ReceiveModeWeb(object):
|
|||||||
# Make sure receive mode dir exists before writing file
|
# Make sure receive mode dir exists before writing file
|
||||||
valid = True
|
valid = True
|
||||||
try:
|
try:
|
||||||
os.makedirs(receive_mode_dir, 0o700)
|
os.makedirs(receive_mode_dir, 0o700, exist_ok=True)
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
self.web.add_request(self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE, request.path, {
|
self.web.add_request(self.web.REQUEST_ERROR_DATA_DIR_CANNOT_CREATE, request.path, {
|
||||||
"receive_mode_dir": receive_mode_dir
|
"receive_mode_dir": receive_mode_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user