Commit 9964adfb authored by Agate's avatar Agate 💬

Merge branch 'check-existing-files-eaccess' into 'develop'

Handle PermissionError when checking existing files

See merge request funkwhale/funkwhale!1154
parents d6f614df 93cb3e8c
......@@ -760,7 +760,7 @@ def check_updates(stdout, library, extensions, paths, batch_size):
def check_upload(stdout, upload):
audio_file = upload.get_audio_file()
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
" Removing file #{} missing from disk at {}".format(, upload.source
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment