Hi,

Thanks for the reply, but I'm not sure I follow. I was hoping that the 
following might work:

    if hasattr(sup_cls, 'media'):
        base = sup_cls.media
    else:
        base = Media()

Would that swallow additional exceptions?

Cheers,
Michael


On Wednesday, September 3, 2014 10:45:22 PM UTC+1, Collin Anderson wrote:
>
> unfortunately hasattr eats even more exceptions than AttributeError.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9db016be-bc63-44b4-934c-7b2c64ae9863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to