scikit-learn/scikit-learn — comment on commit f748b230143a9c99955908106baf9e5763ff5c2f
File: sklearn/multiclass.py line 168
By mblondel:

+1 for changing the exception to `AttributeError` but I would rather keep the error message as it is more informative (without it, the user would have to read the line that triggered the exception in the traceback to understand what went wrong).