Commit cbd3f7791f09508090f20c8ae59c9c33c8688eec

Authored by Christian Herdtweck
1 parent 1e024147

in xglob, if found error, do not try to continue with that file

oletools/thirdparty/xglob/xglob.py
@@ -145,6 +145,7 @@ def iter_files(files, recursive=False, zip_password=None, zip_fname='*'): @@ -145,6 +145,7 @@ def iter_files(files, recursive=False, zip_password=None, zip_fname='*'):
145 for filespec in files: 145 for filespec in files:
146 if not is_glob(filespec) and not os.path.exists(filespec): 146 if not is_glob(filespec) and not os.path.exists(filespec):
147 yield None, filespec, PathNotFoundException(filespec) 147 yield None, filespec, PathNotFoundException(filespec)
  148 + continue
148 for filename in iglob(filespec): 149 for filename in iglob(filespec):
149 if zip_password is not None: 150 if zip_password is not None:
150 # Each file is expected to be a zip archive: 151 # Each file is expected to be a zip archive: