Handle PermissionError when checking existing files

This commit is contained in:
Simon Arlott 2020-06-24 22:23:18 +01:00
parent d6f614df3f
commit 93cb3e8cad
No known key found for this signature in database
GPG Key ID: DF001BFD83E75990
1 changed files with 1 additions and 1 deletions

View File

@ -760,7 +760,7 @@ def check_updates(stdout, library, extensions, paths, batch_size):
def check_upload(stdout, upload):
try:
audio_file = upload.get_audio_file()
except FileNotFoundError:
except (FileNotFoundError, PermissionError):
stdout.write(
" Removing file #{} missing from disk at {}".format(
upload.pk, upload.source