fix prompting error handling
This commit is contained in:
parent
b3c18e0de6
commit
7b3fe6460b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue