#!/bin/env python

from bottle import request
import sys, traceback

def displayErrorPage(exception, context, environment):
    exc_traceback = sys.exc_info()        
    stackTrace = traceback.extract_tb(exc_traceback[2])
        
    errorFrame = environment.contentRegistry.getFrame('error_frame')
    frameArgs = { 'exception': exception, 'stacktrace': stackTrace }
    return errorFrame.render(request, context, **frameArgs)

0e59077c75ecd1ff8834cd58d2dd3ac1411601d6
<mask token>

<mask token>


def displayErrorPage(exception, context, environment):
    exc_traceback = sys.exc_info()
    stackTrace = traceback.extract_tb(exc_traceback[2])
    errorFrame = environment.contentRegistry.getFrame('error_frame')
    frameArgs = {'exception': exception, 'stacktrace': stackTrace}
    return errorFrame.render(request, context, **frameArgs)

from bottle import request
import sys, traceback


def displayErrorPage(exception, context, environment):
    exc_traceback = sys.exc_info()
    stackTrace = traceback.extract_tb(exc_traceback[2])
    errorFrame = environment.contentRegistry.getFrame('error_frame')
    frameArgs = {'exception': exception, 'stacktrace': stackTrace}
    return errorFrame.render(request, context, **frameArgs)

#!/bin/env python

from bottle import request
import sys, traceback

def displayErrorPage(exception, context, environment):
    exc_traceback = sys.exc_info()        
    stackTrace = traceback.extract_tb(exc_traceback[2])
        
    errorFrame = environment.contentRegistry.getFrame('error_frame')
    frameArgs = { 'exception': exception, 'stacktrace': stackTrace }
    return errorFrame.render(request, context, **frameArgs)
