mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 16:59:35 -05:00
Oops, I missed this when resolving merge conflicts
This commit is contained in:
parent
634b8ecebd
commit
b6928a6d0e
@ -124,10 +124,10 @@ class ReceiveModeWeb(object):
|
|||||||
try:
|
try:
|
||||||
os.makedirs(receive_mode_dir, 0o700)
|
os.makedirs(receive_mode_dir, 0o700)
|
||||||
except PermissionError:
|
except PermissionError:
|
||||||
self.web.add_request(self.web.REQUEST_ERROR_DOWNLOADS_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
|
||||||
})
|
})
|
||||||
print(strings._('error_cannot_create_downloads_dir').format(receive_mode_dir))
|
print(strings._('error_cannot_create_data_dir').format(receive_mode_dir))
|
||||||
valid = False
|
valid = False
|
||||||
if not valid:
|
if not valid:
|
||||||
flash('Error uploading, please inform the OnionShare user', 'error')
|
flash('Error uploading, please inform the OnionShare user', 'error')
|
||||||
|
Loading…
Reference in New Issue
Block a user