• Facebook
  • Twitter
  • Reddit
  • StumbleUpon
  • Digg
  • email

All Samples(1084)  |  Call(1012)  |  Derive(0)  |  Import(72)
Print exception up to 'limit' stack trace entries from 'tb' to 'file'.

This differs from print_tb() in the following ways: (1) if
traceback is not None, it prints a header "Traceback (most recent
call last):"; (2) it prints the exception type and value after the
stack trace; (3) if type is SyntaxError and value has the
appropriate format, it prints the line where the syntax error
occurred with a caret on the next line indicating the approximate
position of the error.

        def print_exception(etype, value, tb, limit=None, file=None):
    """Print exception up to 'limit' stack trace entries from 'tb' to 'file'.

    This differs from print_tb() in the following ways: (1) if
    traceback is not None, it prints a header "Traceback (most recent
    call last):"; (2) it prints the exception type and value after the
    stack trace; (3) if type is SyntaxError and value has the
    appropriate format, it prints the line where the syntax error
    occurred with a caret on the next line indicating the approximate
    position of the error.
    """
    if file is None:
        file = sys.stderr
    if tb:
        _print(file, 'Traceback (most recent call last):')
        print_tb(tb, limit, file)
    lines = format_exception_only(etype, value)
    for line in lines:
        _print(file, line, '')
        


src/c/h/ChuzzBot-HEAD/run_bot.py   ChuzzBot(Download)
    try:
        asyncore.loop()
    except BaseException as e:
        from traceback import print_exception
        print_exception(RuntimeError, e, None, limit=15)
 

src/b/a/badger-lib-HEAD/packages/Django/django/core/servers/basehttp.py   badger-lib(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/g/e/geraldo-HEAD/site/newsite/site-geraldo/django/core/servers/basehttp.py   geraldo(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/g/e/geraldo-HEAD/site/newsite/django_1_0/django/core/servers/basehttp.py   geraldo(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/r/e/reporter-lib-HEAD/packages/Django/django/core/servers/basehttp.py   reporter-lib(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/m/d/mdn-lib-HEAD/packages/Django/django/core/servers/basehttp.py   mdn-lib(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/g/o/google-app-engine-HEAD/lib/django/django/core/servers/basehttp.py   google-app-engine(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/s/e/secret-squirrel-lib-HEAD/packages/Django/django/core/servers/basehttp.py   secret-squirrel-lib(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/g/o/google_appengine-HEAD/lib/django/django/core/servers/basehttp.py   google_appengine(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

src/c/0/c.seungjin.net-HEAD/lib/python2.5/site-packages/django/core/servers/basehttp.py   c.seungjin.net(Download)
    def log_exception(self,exc_info):
        """Log the 'exc_info' tuple in the server log
 
        Subclasses may override to retarget the output or change its format.
        """
        try:
            from traceback import print_exception
            stderr = self.get_stderr()
            print_exception(
                exc_info[0], exc_info[1], exc_info[2],

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8  Next