Unverified Commit f6fb7f6a authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

gpt3: print exceptions

parent edc9449f
......@@ -46,6 +46,8 @@ def oa_completion(**kwargs):
try:
return openai.Completion.create(**kwargs)
except openai.error.OpenAIError:
import traceback
traceback.print_exc()
time.sleep(backoff_time)
backoff_time *= 1.5
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment