🏃 fix: run function

This commit is contained in:
Florian Hönicke
2023-05-11 21:53:21 +02:00
parent 840a19aadf
commit b337f74d24
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ class GPTSession:
}]
)
break
except RateLimitError:
except (RateLimitError, openai.error.APIError):
sleep(1)
continue
return True