Skip to content

Class instance throws exception when __getattr__ is added #174

Answered by kc64
kc64 asked this question in Q&A
Discussion options

You must be logged in to vote

I added this and it skips over. Many thanks for the excellent guidance.

def __getattr__(self, name):
    if 'belay' in name:
        raise AttributeError
    ...

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@kc64
Comment options

Answer selected by BrianPugh
@BrianPugh
Comment options

@BrianPugh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants