Changeset 469

Show
Ignore:
Timestamp:
Fri Jun 6 05:09:28 2008
Author:
giovannibajo
Message:

Improve error reporting in a from-import when the imported name does not exist.
Now that exceptions spawned by invalid tries within PyInstaller? do not propagate,
it is possible to simlpy expose the real underlying exception.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/iu.py

    r468 r469  
    367 367                     try:  
    368 368                         mod = self.doimport(nm, ctx, ctx+'.'+nm)  
    369                       except Exception, e:  
    370                           print "FIXME: self.doimport Exception", e  
    371                       if threaded:  
    372                           self._release()  
      369                     finally:  
      370                         if threaded:  
      371                             self._release()  
    373 372         #print "importHook done with %s %s %s (case 3)" % (name, globals['__name__'], fromlist)  
    374 373         return bottommod