__getattribute__'s error is not available in __getattr__
Chris Angelico
rosuav at gmail.com
Tue May 2 22:47:17 EDT 2017
On Wed, May 3, 2017 at 12:37 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> Until then Chris' decorator is probably the easiest work around -- but you
> should only catch AttributeError, not everything.
It does. (Or rather, it catches only those exception(s) listed as
parameters.) Any other exceptions pass through unchanged.
ChrisA
More information about the Python-list
mailing list