(fix) img gen endpoints unstable
This commit is contained in:
parent
365497e860
commit
75614bc29c
@ -201,7 +201,7 @@ async def image_generation(session, key):
|
||||
if (
|
||||
"Connection error" in response_text
|
||||
): # OpenAI endpoint returns a connection error
|
||||
pass
|
||||
return
|
||||
raise Exception(f"Request did not return a 200 status code: {status}")
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user