From cbd3f7791f09508090f20c8ae59c9c33c8688eec Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Thu, 28 Apr 2016 16:42:38 +0200 Subject: [PATCH] in xglob, if found error, do not try to continue with that file --- oletools/thirdparty/xglob/xglob.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/oletools/thirdparty/xglob/xglob.py b/oletools/thirdparty/xglob/xglob.py index 07e5d0c..29f3398 100644 --- a/oletools/thirdparty/xglob/xglob.py +++ b/oletools/thirdparty/xglob/xglob.py @@ -145,6 +145,7 @@ def iter_files(files, recursive=False, zip_password=None, zip_fname='*'): for filespec in files: if not is_glob(filespec) and not os.path.exists(filespec): yield None, filespec, PathNotFoundException(filespec) + continue for filename in iglob(filespec): if zip_password is not None: # Each file is expected to be a zip archive: -- libgit2 0.21.4