#30309: Remove hasattr reference in One-to-One documentation example
-------------------------------+--------------------------------------
Reporter: David Beitey | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 2.2
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by felixxm):
`hasattr()` is not throwing an exceptions, just in case I checked with
Python 3.6/3.7 and Django 2.1/2.2.
Did you check this?
FYI: `RelatedObjectDoesNotExist` is a subclass of `AttributeError`.
--
Ticket URL: <https://code.djangoproject.com/ticket/30309#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.2d4af69033f146badeac04c2c1bac256%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.