fix prompting error handling
This commit is contained in:
parent
b3c18e0de6
commit
7b3fe6460b
@ -239,7 +239,7 @@ async def gen_image(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
|||||||
|
|
||||||
result = await enqueue_prompt_t2i(args)
|
result = await enqueue_prompt_t2i(args)
|
||||||
|
|
||||||
if result["error"] == 0:
|
if result["error"] == "OK":
|
||||||
|
|
||||||
prompt_id = result['data']
|
prompt_id = result['data']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user