If I use pylint (via sublimerlinter) I get following warning message:
W602 deprecated form of raising exception
This I how I use exceptions in my code:
if CONDITION == True:
raise ValueError, HELPING_EXPLANATION
If I use pylint (via sublimerlinter) I get following warning message:
W602 deprecated form of raising exception
This I how I use exceptions in my code:
if CONDITION == True:
raise ValueError, HELPING_EXPLANATION
Raise your exception like this:
From PEP 8 -- Style Guide for Python Code - Programming Recommendations: