4 ms·
The animation shows replacing 'raise ex' with 'raise' but just leaves the now unused ex in 'catch Exception as ex', and in one of the comments here there's a si
by stinos 5y ago
The animation shows replacing 'raise ex' with 'raise' but just leaves the now unused ex in 'catch Exception as ex', and in one of the comments here there's a similar unused name ke in 'Keyerror as ke'. That hurts my C++ eyes a bit, but not having studied a lot of other Python code I wonder: is this a common thing to do, or are these just 2 'bad' examples?
- latrova 5y agoIt's 2 bad examples, this linter is focused on try/except blocks. For more general linting I would suggest flake8 :) I'm planning on writing a plugin for it.