[code-quality] [feature request] Unused variable warning for "except Exception as e"

2018-04-15 Thread Shane Creighton-Young
Hello flake8! I would have expected pyflakes to emit an unused variables warning for "e" on the following code snippet: class ModuleError(Exception): pass try: 1 / 0 except ZeroDivisionError as e: raise ModuleError() Curious if this check can be added. Thank you! -- Shane Creighto

Re: [code-quality] [feature request] Unused variable warning for "except Exception as e"

2018-04-15 Thread Ian Stapleton Cordasco
Hi Shane, Can you share what version of pyflakes and on what version of python you're running? For future reference, I think the preferred location for ideas and bugs is github.com/PyCQA/pyflakes/issues Sent from my phone with my typo-happy thumbs. Please excuse my brevity On Sun, Apr 15, 2018,