Merge pull request #140 from ccppoo/patch-5

Update file.py
This commit is contained in:
deeppomf 2019-05-07 05:19:20 -04:00 committed by GitHub
commit c56931ef71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,11 +42,12 @@ def check_file(input_dir, output_dir, Release_version = True):
def error_messages(file_list, files_removed):
if len(files_removed) ==0:
if files_removed is None:
return
for remove_this,reason in files_removed:
file_list.remove(remove_this)
if(file_list is not None):
file_list.remove(remove_this)
if reason == 0:
print(" REMOVED : (" + str(remove_this) +") is not PNG file format")
elif reason == 1: