openai-python
openai-python copied to clipboard
Fix mypy
mypy doesn't correctly handle try except blocks, so it's necessary to import from the correct module based on the python version.
I accidentally broke this in https://github.com/openai/openai-python/pull/154, I am sorry about that
cc @ddeville