import traceback
def func():
try:
-- do something --
except:
traceback.print_exc()
For this code
pylint reporting error: bare-except No exception type(s) specified , W0702, Occurs when an except clause doesn't specify exceptions type to catch.
Now, if I want all exceptions to be captured without pylint error. Is there a way.
Please help.
Thanks