diff --git a/src/microcosm/__init__.py b/src/microcosm/__init__.py index 30997dd..2246ce2 100644 --- a/src/microcosm/__init__.py +++ b/src/microcosm/__init__.py @@ -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 = ""