Starting python debugger automatically on error