@@ -420,7 +420,7 @@ def preprocess(self, input_path):
420420 if not isinstance (input_path , (str , os .PathLike )):
421421 raise TypeError ("input_path must be string or path-like" )
422422 if not os .path .exists (input_path ):
423- raise FileNotFoundError ("file not found" )
423+ raise FileNotFoundError (input_path , "file not found" )
424424
425425 with open (input_path , encoding = "utf8" ) as csvfile :
426426 reader = csv .reader (csvfile )
@@ -490,7 +490,7 @@ def preprocess(self, input_path):
490490 if not isinstance (input_path , (str , os .PathLike )):
491491 raise TypeError ("input_path must be string or path-like" )
492492 if not os .path .exists (input_path ):
493- raise FileNotFoundError ("file not found" )
493+ raise FileNotFoundError (input_path , "file not found" )
494494
495495 with open (input_path , encoding = "utf8" ) as csvfile :
496496 reader = csv .reader (csvfile )
@@ -540,7 +540,7 @@ def make_csv(input_path, output_directory, field, show_path=False):
540540 if not isinstance (input_path , (str , os .PathLike )):
541541 raise TypeError ("input_path must be string or path-like" )
542542 if not os .path .exists (input_path ):
543- raise FileNotFoundError ("file not found" )
543+ raise FileNotFoundError (input_path , "file not found" )
544544
545545 with open (input_path , 'r' , encoding = "utf8" ) as in_txt :
546546 for line in in_txt :
0 commit comments