Only tag existing files

Fixes #3088
This commit is contained in:
mano3m
2014-04-15 21:35:16 +02:00
parent 26f5e8aa4b
commit 9b75e6af5c
+1 -1
View File
@@ -652,7 +652,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
elif isinstance(release_download, dict):
# Tag download_files if they are known
if release_download.get('files', []):
tag_files = release_download.get('files', [])
tag_files = [filename for filename in release_download.get('files', []) if os.path.exists(filename)]
# Tag all files in release folder
elif release_download['folder']: