We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50b1f66 commit e66f5e8Copy full SHA for e66f5e8
combineImg/__init__.py
@@ -134,7 +134,7 @@ def lambda_handler(event, context):
134
return {'statusCode':400,'body':'Invalid image URL'}
135
combined = genImageFromURL(images)
136
if (combined == None):
137
- return {'statusCode':400,'body':'Failed to download image(s)'}
+ return {'statusCode':500,'body':'Failed to download image(s)'}
138
buffered = BytesIO()
139
combined.save(buffered,format="JPEG",quality=60)
140
combined_str=base64.b64encode(buffered.getvalue()).decode('ascii')
0 commit comments