ZODB Components: Display proper traceback and source code if an error occurred on 'exec'.
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).
Showing
Please register or sign in to comment