def _error_traceback_html(exc_info, traceback):
 html = '\n    <html>\n        <head>\n            <title>ERROR: {error}</title>\n        </head>\n        <body style="font-family: sans-serif">\n            <h4>The Authomatic library encountered an error!</h4>\n            <h1>{error}</h1>\n            <pre>{traceback}</pre>\n        </body>\n    </html>\n    '
 return html.format(error=exc_info[1], traceback=traceback)

def _error_traceback_html ( exc_info , traceback ) : html = '\n    <html>\n        <head>\n            <title>ERROR: {error}</title>\n        </head>\n        <body style="font-family: sans-serif">\n            <h4>The Authomatic library encountered an error!</h4>\n            <h1>{error}</h1>\n            <pre>{traceback}</pre>\n        </body>\n    </html>\n    ' return html . format ( error = exc_info [ 1 ] , traceback = traceback )
generates error traceback html .