diff --git a/py/misc/buildcmodule.py b/py/misc/buildcmodule.py index a08e49e77..5215e091b 100644 --- a/py/misc/buildcmodule.py +++ b/py/misc/buildcmodule.py @@ -28,7 +28,7 @@ def make_module_from_c(cfile): if filetype == imp.C_EXTENSION: break else: - raise ValueError, "cannot find the file name suffix of C ext modules" + raise ImportError, "cannot find the file name suffix of C ext modules" lib = dirpath.join(modname+ext) # argl! we need better "build"-locations alltogether!