[ET Trac] [Einstein Toolkit] #948: Do not use bare "except:"

Einstein Toolkit trac-noreply at einsteintoolkit.org
Wed Jun 6 19:19:41 CDT 2012


#948: Do not use bare "except:"
------------------------+---------------------------------------------------
 Reporter:  eschnett    |       Owner:  eschnett
     Type:  defect      |      Status:  new     
 Priority:  minor       |   Milestone:          
Component:  SimFactory  |     Version:          
 Keywords:              |  
------------------------+---------------------------------------------------
 A bare "except:" (without listing an exception class) will intercept all
 exceptions, including the user typing control-C to abort. This should
 therefore not be used, except if (a) the code will abort anyway with an
 appropriate user-visible error message, or (b) the code will re-raise the
 exception via "raise".

 In particular, Simfactory catches filesystem errors with bare excepts;
 this should be cleaned up.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/948>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list