Fix: py27 compat

This commit is contained in:
Manuel Barkhau 2019-03-29 02:32:29 +01:00
parent 9b950ebb83
commit 83a800bdeb
2 changed files with 3 additions and 3 deletions

View file

@ -122,7 +122,7 @@ def _iter_file_paths(
file_paths = glob.glob(globstr)
if not any(file_paths):
errmsg = f"No files found for path/glob '{globstr}'"
raise FileNotFoundError(errmsg)
raise IOError(errmsg)
for file_path_str in file_paths:
file_path = pl.Path(file_path_str)
yield (file_path, pattern_strs)