__getattribute__'s error is not available in __getattr__

Ethan Furman ethan at stoneleaf.us
Wed May 3 00:39:44 EDT 2017


On 05/02/2017 07:47 PM, Chris Angelico wrote:
> On Wed, May 3, 2017 at 12:37 PM, Ethan Furman 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.

Ah, that's what I get for skimming!

--
~Ethan~




More information about the Python-list mailing list