Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def make_traceback(host):
    head = '%s | %s' % (host, datetime.datetime.now())
    line = '-' * len(head)
    return '\n%s\n%s\n%s\n%s' % (line, head, line,
        ''.join(traceback.format_exception(*sys.exc_info())[1:]))
        


src/p/y/pysi-0.18.0/pysi/wsgi.py   pysi(Download)
import simplejson as json
 
from util import cached_property, make_traceback, obj_from_str, list_obj_from_str
from config import cfg
from exceptions import HttpError, BasicAuth
        except HttpError, e:
            if cfg.DEBUG:
                res = Response(make_traceback(rq.host),
                    code=e[0], content_type='text/plain')
            else:
                res = get_error_page(rq, e[0])
        except Exception:
            tb = make_traceback(environ.get('HTTP_X_FORWARDED_HOST',