Merge branch 'production' of logicalhacking.com:BrowserSecurity/ExtensionCrawler into production

This commit is contained in:
Achim D. Brucker 2018-04-27 16:29:49 +01:00
commit 437c1c4727
1 changed files with 3 additions and 4 deletions

View File

@ -99,9 +99,8 @@ def log_summary(res, runtime=0):
if corrupt_tar_archives:
log_info("")
log_info("List of extensions with corrupted files/archives:")
list(
map(lambda x: log_info(" " + x.id + ": " + str(x.exception)),
corrupt_tar_archives))
for x in corrupt_tar_archives:
log_info("{}: {}".format(x.ext_id, x.exception), 1)
log_info("")
@ -230,7 +229,7 @@ def main(argv):
has_exception = list(filter(lambda x: x.has_exception(), res))
if has_exception:
log_info(" {} extensions with unknown exceptions, start another try ...".format(str(len(has_exception))))
has_exception_ids = list(map(lambda x: x.id, has_exception))
has_exception_ids = [x.ext_id for x in has_exception]
forum_ext_ids_except = list(
set(forum_ext_ids).intersection(set(has_exception_ids)))
ext_ids_except = sorted(