On Wed, 31 Mar 2010 12:24:43 -0700 (PDT), Feng <[email protected]> wrote: > Hi Giovanni, > > Thanks for the response. > > I just checked out svn trunk and tried but it still failed. > File "/home/feng/dev/pyinstaller-svn/pyinstaller/iu.py", line 532, > in doimport > del sys.modules[fqname] > KeyError: 'bsddb' > > even when I changed the iu.py: except KeyError: to except: > it still didn't work.
Silly me: it's because this code is executed within an except: clause that ends with a "raise". So what happened is that the original exception (the ImportError) was being masked, and KeyError was being re-raised again by the "raise" statement. I committed the proper fix in [816]. I went for a .pop() which is faster. Thank you! -- Giovanni Bajo :: [email protected] Develer S.r.l. :: http://www.develer.com My Blog: http://giovanni.bajo.it -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
