Skip to content
Snippets Groups Projects
Commit 9964adfb authored by Agate's avatar Agate :speech_balloon:
Browse files

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

Handle PermissionError when checking existing files

See merge request !1154
parents d6f614df 93cb3e8c
No related branches found
No related tags found
No related merge requests found
...@@ -760,7 +760,7 @@ def check_updates(stdout, library, extensions, paths, batch_size): ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment