I hit this with get_admin_url in the LogEntry #1417. Instead of raising attribute error it's silently fails.

example (m-r):

defget_admin_url(self):"""
Returns the admin URL to edit the object represented by this log entry.
This is relative to the Django admin index page.
"""try:return"%s/%s/%s/"%(self.content_type.app_label1,self.content_type.model,self.object_id)exceptException, err:returnstr(err)

(note self.content_type.app_label1)

If I don't use try..except block I only get empty href's in admin instead od AttributeError.

Perhaps you're dealing with the template system here? The template system automatically catches exceptions when rendering content...

If I understood corrrectly, any exception which is raised inside template rendering like <a href="{{ entry.get_admin_url }}"> will be silently ignored?

This type of behavior can produce some hard to find errors which will be trivial to fix if exception is reported.

There are lots of places in Django that rely on AttributeError being handled as it is. If you want to try and debug particular cases, set TEMPLATE_STRING_IF_INVALID to something non-empty. There's not much else we can do here.