Fix Py3 bug in getting function name when CV storage raises error #830
Conversation
|
Actually, this is a Python 2.7/3.x issue; the issue is with the function that the if sys.version_info > (3, ):
get_callable_name = lambda c: c.__name__
else:
get_callable_name = lambda c: c.func_name(then use Also, I assume that you found this because something happened that raised an error message (since this is in an error message). I just wrote up some docs on making CVs that will, I hope, make it a little clearer! See #831. |
|
Yes. I was not importing the modules. Thanks for that link!. |
|
Please note that we have changed to the OPS license from LGPL (2.1 or later) to MIT. For any pull request to OPS that was started while the license was still LGPL, I need an explicit confirmation that you approve of the license change. Please add a comment with something like "The changes in this pull request are licensed under the MIT license." |
|
The changes in this pull request are licensed under the MIT license. |
dwhswenson
left a comment
There was a problem hiding this comment.
That works! Thanks for the fix.
func_name is not an attribute of FunctionCV