fix: reject empty images from whisk, bump to v3
This commit is contained in:
parent
1b668afa30
commit
e38efd392c
2 changed files with 4 additions and 2 deletions
|
|
@ -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 ==="
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue