kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Merge branch 'check-existing-files-eaccess' into 'develop'
Handle PermissionError when checking existing files See merge request funkwhale/funkwhale!1154environments/review-docs-devel-1399dq/deployments/6607
commit
9964adfbf6
|
@ -760,7 +760,7 @@ def check_updates(stdout, library, extensions, paths, batch_size):
|
||||||
def check_upload(stdout, upload):
|
def check_upload(stdout, upload):
|
||||||
try:
|
try:
|
||||||
audio_file = upload.get_audio_file()
|
audio_file = upload.get_audio_file()
|
||||||
except FileNotFoundError:
|
except (FileNotFoundError, PermissionError):
|
||||||
stdout.write(
|
stdout.write(
|
||||||
" Removing file #{} missing from disk at {}".format(
|
" Removing file #{} missing from disk at {}".format(
|
||||||
upload.pk, upload.source
|
upload.pk, upload.source
|
||||||
|
|
Ładowanie…
Reference in New Issue