Re: [virt-tools-list] [virt-manager] [PATCH 5/5] pycodestyle: Do not use bare 'except:'

2017-08-02 Thread Cole Robinson
On 07/24/2017 04:26 AM, Radostin Stoyanov wrote: > A bare 'except:' catches all exceptions [1], including SystemExit, > KeyboardInterrupt, and GeneratorExit (which is not an error and should > not normally be caught by user code). In situations where you need to > catch all “normal” errors, you

[virt-tools-list] [virt-manager] [PATCH 5/5] pycodestyle: Do not use bare 'except:'

2017-07-24 Thread Radostin Stoyanov
A bare 'except:' catches all exceptions [1], including SystemExit, KeyboardInterrupt, and GeneratorExit (which is not an error and should not normally be caught by user code). In situations where you need to catch all “normal” errors, you can catch the base class for all normal exceptions,