better handling for alt text
This commit is contained in:
parent
a8a704424a
commit
85c1c7901e
|
@ -346,8 +346,9 @@ def process_multipart_post():
|
||||||
|
|
||||||
if "mp-photo-alt[]" in request.form:
|
if "mp-photo-alt[]" in request.form:
|
||||||
try:
|
try:
|
||||||
alt = request.form["mp-photo-alt[]"][i]
|
alt = request.form.getlist('mp-photo-alt[]')[i]
|
||||||
except:
|
except:
|
||||||
|
print(f"No alt text specified for image {i}")
|
||||||
alt = ""
|
alt = ""
|
||||||
else:
|
else:
|
||||||
alt = ""
|
alt = ""
|
||||||
|
|
Loading…
Reference in New Issue