Jason Stubbs wrote:
On Thursday 22 December 2005 16:21, Brian Harring wrote:

Not sure if hiding the exception away (traceback) is a good thing;
wrapping it with purdy output, sure, but swallowing it?


If it's failing to import, there's something pretty wrong with it. I'm sure that module authors will know enough to remove the except block. Is there really anything useful gained from dumping the traceback?


A while back we had someone in #gentoo-portage with a problem where portage was 
swallowing the traceback in effectively the same way.  In that case it turned 
out to be a corrupt python bytecode file (.pyo) in their python installation.  
Given that we can never rule out problems in the user's python installation (or 
third party python modules), the best policy may be to print a traceback in any 
case (better safe than sorry).

Zac

--
[email protected] mailing list

Reply via email to