From e38efd392c5d1e95800355e70faac65e610c7ca3 Mon Sep 17 00:00:00 2001 From: "Khoa.vo" Date: Tue, 30 Dec 2025 21:14:02 +0700 Subject: [PATCH] fix: reject empty images from whisk, bump to v3 --- push_registry.sh | 2 +- whisk_client.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/push_registry.sh b/push_registry.sh index 9cd6f9b..fc89d47 100755 --- a/push_registry.sh +++ b/push_registry.sh @@ -3,7 +3,7 @@ # Configuration REGISTRY="git.khoavo.myds.me" IMAGE_NAME="vndangkhoa/apix" -TAG="v2" +TAG="v3" FULL_IMAGE="$REGISTRY/$IMAGE_NAME:$TAG" echo "=== Building Docker Image for Linux/AMD64 ===" diff --git a/whisk_client.py b/whisk_client.py index 84191e1..06e61da 100644 --- a/whisk_client.py +++ b/whisk_client.py @@ -240,8 +240,10 @@ def load_template_favorites(): if 'imagePanels' in json_resp: for panel in json_resp['imagePanels']: for img in panel.get('generatedImages', []): - if 'encodedImage' in img: + if 'encodedImage' in img and img['encodedImage']: images.append(img['encodedImage']) + else: + logger.warning(f"Found image entry but encodedImage was emptyor missing. Img keys: {img.keys()}") if not images: import json