Pass WindowsError when moving uploaded file
This commit is contained in:
parent
726d85ebd0
commit
90b28b3dbd
1 changed files with 4 additions and 1 deletions
|
@ -375,7 +375,10 @@ class LBRYFileUpload(resource.Resource):
|
|||
# Move to a new temporary dir and restore the original file name
|
||||
newdirpath = tempfile.mkdtemp()
|
||||
newpath = os.path.join(newdirpath, origfilename)
|
||||
try:
|
||||
shutil.move(uploaded_file.name, newpath)
|
||||
except WindowsError:
|
||||
pass
|
||||
self._api.uploaded_temp_files.append(newpath)
|
||||
|
||||
return json.dumps(newpath)
|
||||
|
|
Loading…
Reference in a new issue