Azure openai error handling python.

Azure openai error handling python.