#34451: Incorrect handling of ImproperlyConfigured Exception in views in ASGI
context
--------------------------------+--------------------------------------
     Reporter:  Michael Galler  |                    Owner:  nobody
         Type:  Bug             |                   Status:  closed
    Component:  Core (Other)    |                  Version:  4.1
     Severity:  Normal          |               Resolution:  invalid
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * cc: asgi (added)
 * resolution:   => invalid
 * status:  new => closed
 * component:  Uncategorized => Core (Other)


Comment:

 Hi, thanks for the report, however, I don't think you've explained the
 issue in enough detail to confirm a bug in Django. It works fine with
 Django built-in `runserver` and with `daphne`'s `runserver` (see
 [https://docs.djangoproject.com/en/dev/howto/deployment/asgi/daphne/
 docs]). The repeated frame (5-6 times) in a non-development web servers
 doesn't look like an issue in Django itself.

 TBH, I think it's an issue in web servers. For example, it works properly
 when I change `ImproperlyConfigured` class to inherit from `BaseException`
 instead of `Exception`, but that should not be the case as `BaseException`
 
[https://docs.python.org/3/library/exceptions.html?highlight=baseexception#BaseException
 is not intended to be directly inherited] from user-defined exceptions.

 IMO, you should try to report it in web server bug trackers or in Python
 itself (check for duplicated first).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34451#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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018737659d81-15a6c5b0-e84c-4832-8ad5-13292ece71c7-000000%40eu-central-1.amazonses.com.

Reply via email to