Exception attribute 'error' doesn't exist
Closed this issue · 2 comments
bennoleslie commented
When handling an execjs ProgramError, the code attempts to read the message
attribute from the raised exception. The exception doesn't have any such attribute (causing a nested exception).
I'm not sure what the right fix is. I worked around be just doing str(e)
, instead of e.message
which at least unblocks me.
kmeht commented
Ah yeah, BaseException.message
is deprecated. It's possible that it's been removed in the version of Python you're using. Using str
is the way to go; we'd be happy to take a PR :)
davidfischer-ch commented
I guess you can close this issue because of a31de36.