mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 12:59:17 +02:00
Handle PermissionError when checking existing files
This commit is contained in:
parent
d6f614df3f
commit
93cb3e8cad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue