Ensure we mimic python's errors as closely as possible.

This commit is contained in:
Mike Auty
2017-03-24 01:01:52 +00:00
parent 5d3677a0b9
commit 1db4922033
+2 -1
View File
@@ -102,7 +102,8 @@ class IntermediateSymbolTable(interfaces.symbols.SymbolTableInterface):
if isf_url:
break
else:
raise ValueError("ISF file {} could not be found in standard search paths".format(relative_isf))
raise FileNotFoundError(
"ISF path fragment {} could not be found in standard search paths".format(relative_isf))
return cls(context, config_path, name, isf_url, native_types)
def _closest_version(self, version, versions):