1.1 --- a/importer.py Thu Jan 12 21:38:38 2017 +0100
1.2 +++ b/importer.py Thu Jan 12 23:29:39 2017 +0100
1.3 @@ -973,12 +973,10 @@
1.4 path_so_far.append(p)
1.5 module_name = ".".join(path_so_far)
1.6
1.7 - # Return None if the module could not be located.
1.8 + # Raise an exception if the module could not be located.
1.9
1.10 if not m:
1.11 - if self.verbose:
1.12 - print >>sys.stderr, "Not found (%s)" % name
1.13 - return None
1.14 + raise ProgramError("Module not found: %s" % name)
1.15
1.16 # Get the directory and module filename.
1.17