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:
|
||||
try:
|
||||
alt = request.form["mp-photo-alt[]"][i]
|
||||
alt = request.form.getlist('mp-photo-alt[]')[i]
|
||||
except:
|
||||
print(f"No alt text specified for image {i}")
|
||||
alt = ""
|
||||
else:
|
||||
alt = ""
|
||||
|
|
Loading…
Reference in New Issue