[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/lineCode/cefpython/cefpython55/src/cefpython3.wx/utils.py [Back]  [Original]

# Additional and wx specific layer of abstraction for the cefpython
# __author__ = "Greg Kacy "

#-------------------------------------------------------------------------------

def ExceptHook(excType, excValue, traceObject):
    import traceback, os
    errorMsg = "\n".join(traceback.format_exception(
            excType, excValue, traceObject))
    if type(errorMsg) == bytes:
        errorMsg = errorMsg.decode(encoding="ascii", errors="replace")
    else:
        errorMsg = errorMsg.encode("ascii", errors="replace")
        errorMsg = errorMsg.decode("ascii", errors="replace")
    print("\n"+errorMsg+"\n")
    #cefpython.QuitMessageLoop()
    #cefpython.Shutdown()
    # So that "finally" does not execute.
    #os._exit(1)

Web Proxy Viewer  |  New URL  |  Original Page