Message124968
raise AttributeError from None
makes sense to me, and in a nice, short example like that I prefer it.
In real code, however, I think
raise AttributeError.no_context("Field %s is not in table" % attr)
is going to be easier for the human to parse than
raise AttributeError("Field %s is not in table" % attr) from None |
|
Date |
User |
Action |
Args |
2010-12-31 15:42:51 | ethan.furman | set | recipients:
+ ethan.furman, rhettinger, ncoghlan, pitrou, draghuram, eric.araujo, mrabarnett, steven.daprano, poke |
2010-12-31 15:42:48 | ethan.furman | link | issue6210 messages |
2010-12-31 15:42:48 | ethan.furman | create | |
|