§
    kÍâhö  ã                   óN   — d dl Z d dlmZ  e j        ¦   «         Zde_        dd„ZdS )é    N)ÚWSGIHandleréô  c                 óJ  — 	 t          |j        j        j                             d¦  «        t
          ¦  «        r|t          _        nt          j        rt          j        }n# t          $ r Y nw xY w	 |€
 |¦   «         }|j	        |ur| 
                    |¦  «        ‚|‚# d}d}w xY w)a¿  
    Alternative function for django.views.debug.technical_500_response.

    Django's convert_exception_to_response() wrapper is called on each 'Middleware' object to avoid
    leaking exceptions. If an uncaught exception is raised, the wrapper calls technical_500_response()
    to create a response for django's debug view.

    Runserver_plus overrides the django debug view's technical_500_response() function to allow for
    an enhanced WSGI debugger view to be displayed. However, because Django calls
    convert_exception_to_response() on each object in the stack of Middleware objects, re-raising an
    error quickly pollutes the traceback displayed.

    Runserver_plus only needs needs traceback frames relevant to WSGIHandler Middleware objects, so
    only store the traceback if it is for a WSGIHandler. If an exception is not raised here, Django
    eventually throws an error for not getting a valid response object for its debug view.
    ÚselfN)Ú
isinstanceÚtb_nextÚtb_frameÚf_localsÚgetr   ÚtldÚwsgi_tbÚAttributeErrorÚ__traceback__Úwith_traceback)ÚrequestÚexc_typeÚ	exc_valueÚtbÚstatus_codes        úf/var/www/histauto/venv/lib/python3.11/site-packages/django_extensions/management/technical_response.pyÚnull_technical_500_responser   
   s¼   € ð"õ �b”jÔ)Ô2×6Ò6°vÑ>Ô>ÅÑLÔLð 	Ø�CŒKˆKÝŒ[ð 	Ý”ˆBøøÝð ð ð ØˆðøøøðØÐØ ˜™
œ
ˆIØÔ"¨"Ð,Ð,Ø×*Ò*¨2Ñ.Ô.Ð.Øˆøàˆ	Øˆˆ	ˆ	ˆ	ˆ	s   ‚AA Á
A,Á+A,Á0,B ÂB")r   )Ú	threadingÚdjango.core.handlers.wsgir   Úlocalr   r   r   © ó    r   ú<module>r      sW   ðà Ð Ð Ð à 1Ð 1Ð 1Ð 1Ð 1Ð 1à€i„oÑÔ€Ø€„ð#ð #ð #ð #ð #ð #r   