Projet

Général

Profil

« Précédent | Suivant » 

Révision 64e4fc7f

Ajouté par Benjamin Dauvergne il y a plus de 10 ans

fix indentation error

Voir les différences:

entrouvert/djommon/middleware.py
16 16
# copied from http://stackoverflow.com/questions/9294043/include-django-logged-user-in-django-traceback-error
17 17

  
18 18
class UserInTracebackMiddleware(object):
19
"""
20
    Adds user details to request context during request processing, so that they
21
    show up in the error emails. Add to settings.MIDDLEWARE_CLASSES and keep it
22
    outermost(i.e. on top if possible). This allows it to catch exceptions in
23
    other middlewares as well.
24
"""
19
    """
20
        Adds user details to request context during request processing, so that they
21
        show up in the error emails. Add to settings.MIDDLEWARE_CLASSES and keep it
22
        outermost(i.e. on top if possible). This allows it to catch exceptions in
23
        other middlewares as well.
24
    """
25 25

  
26 26
    def process_exception(self, request, exception):
27 27
        """

Formats disponibles : Unified diff