Ticket #1493: django.basehttp.patch

File django.basehttp.patch, 877 bytes (added by eugene@…, 19 years ago)
  • django/core/servers/basehttp.py

     
    456456        """Log the 'exc_info' tuple in the server log
    457457
    458458        Subclasses may override to retarget the output or change its format.
    459         """
     459        """
    460460        try:
     461            try:
     462                if exc_info[1][0] == 10053:
     463                    # ignore aborted connections
     464                    return
     465            except TypeError:
     466                pass
    461467            from traceback import print_exception
    462             stderr = self.get_stderr()
     468            stderr = self.get_stderr()
    463469            print_exception(
    464470                exc_info[0], exc_info[1], exc_info[2],
    465471                self.traceback_limit, stderr
Back to Top