• Arnaud Fontaine's avatar
    ZODB Components: Display proper traceback and source code if an error occurred on 'exec'. · cb631f83
    Arnaud Fontaine authored
    The initial 'exec' traceback was not passed when raising ImportError (following
    PEP-302), thus it displayed traceback in component_package instead of the actual
    location of the error. Also, Caching source code retrieved from traceback/(i)pdb
    (through get_source()) was done after the actual 'exec', whereas it should have
    always been *before* obviously...
    
    Steps to reproduce:
      1/ Create and validate a Test Component A importing another Component B.
      2/ Invalidate Component B or add a typo not handled by pylint (because of exceptions).
    cb631f83
component_package.py 17.1 KB