Commit 07326839b959683fd22cd08472df0edff87fa3c8
1 parent
1c34660a
fixed bug: return PathNotFoundException from xglob as 3rd arg as docu says
Showing
1 changed file
with
1 additions
and
1 deletions
oletools/thirdparty/xglob/xglob.py
| ... | ... | @@ -144,7 +144,7 @@ def iter_files(files, recursive=False, zip_password=None, zip_fname='*'): |
| 144 | 144 | iglob = glob.iglob |
| 145 | 145 | for filespec in files: |
| 146 | 146 | if not is_glob(filespec) and not os.path.exists(filespec): |
| 147 | - yield None, PathNotFoundException(filespec), None | |
| 147 | + yield None, filespec, PathNotFoundException(filespec) | |
| 148 | 148 | for filename in iglob(filespec): |
| 149 | 149 | if zip_password is not None: |
| 150 | 150 | # Each file is expected to be a zip archive: | ... | ... |