Handle no action id

This commit is contained in:
somebody
2022-12-19 20:22:33 -06:00
parent 9ce72e7071
commit 8d113bf0aa

View File

@@ -9598,7 +9598,10 @@ def generate_story_image(
log_image_generation(prompt, display_prompt, file_name, generation_type, log_data) log_image_generation(prompt, display_prompt, file_name, generation_type, log_data)
#let's also add this data to the action so we know where the latest picture is at #let's also add this data to the action so we know where the latest picture is at
logger.info("setting picture filename") logger.info("setting picture filename")
try:
koboldai_vars.actions.set_picture(int(log_data['actionId']), file_name, prompt) koboldai_vars.actions.set_picture(int(log_data['actionId']), file_name, prompt)
except KeyError:
pass
logger.debug("Time to Generate Image {}".format(time.time()-start_time)) logger.debug("Time to Generate Image {}".format(time.time()-start_time))