#16323: Typo in 'Raising 404' listing -----------------------------------------+------------------------------- Reporter: anonymous | Owner: nobody Type: Uncategorized | Status: closed Milestone: | Component: Documentation Version: 1.3 | Severity: Normal Resolution: invalid | Keywords: typo Triage Stage: Unreviewed | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -----------------------------------------+------------------------------- Changes (by aaugustin):
* status: new => closed * needs_docs: => 0 * resolution: => invalid * needs_tests: => 0 * needs_better_patch: => 0 Comment: Http404 is not a function; it's a class and it inherits `Exception`. Python allows raising exceptions like this: http://docs.python.org/tutorial/errors.html#raising-exceptions > The sole argument to raise indicates the exception to be raised. This must be either an exception instance or an exception class (a class that derives from Exception). A grep over the source and docs shows that both kinds or `raise` (with a class or an instance) are commonly used. -- Ticket URL: <https://code.djangoproject.com/ticket/16323#comment:1> 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 post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.