1 2 3 4 5 6 7
# install the apport exception handler if available try: import apport_python_hook except ImportError: pass else: apport_python_hook.install()