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
|
# Configuration
|
||||||
REGISTRY="git.khoavo.myds.me"
|
REGISTRY="git.khoavo.myds.me"
|
||||||
IMAGE_NAME="vndangkhoa/apix"
|
IMAGE_NAME="vndangkhoa/apix"
|
||||||
TAG="v2"
|
TAG="v3"
|
||||||
FULL_IMAGE="$REGISTRY/$IMAGE_NAME:$TAG"
|
FULL_IMAGE="$REGISTRY/$IMAGE_NAME:$TAG"
|
||||||
|
|
||||||
echo "=== Building Docker Image for Linux/AMD64 ==="
|
echo "=== Building Docker Image for Linux/AMD64 ==="
|
||||||
|
|
|
||||||
|
|
@ -240,8 +240,10 @@ def load_template_favorites():
|
||||||
if 'imagePanels' in json_resp:
|
if 'imagePanels' in json_resp:
|
||||||
for panel in json_resp['imagePanels']:
|
for panel in json_resp['imagePanels']:
|
||||||
for img in panel.get('generatedImages', []):
|
for img in panel.get('generatedImages', []):
|
||||||
if 'encodedImage' in img:
|
if 'encodedImage' in img and img['encodedImage']:
|
||||||
images.append(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:
|
if not images:
|
||||||
import json
|
import json
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue