From 522875c6af843dc9e86ef17b66b66aa36bfc11f3 Mon Sep 17 00:00:00 2001 From: ccppoo Date: Tue, 7 May 2019 13:24:29 +0900 Subject: [PATCH] Update file.py --- file.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/file.py b/file.py index 4ccbba8..de203aa 100644 --- a/file.py +++ b/file.py @@ -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: