X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/chopwood/blobdiff_plain/9e574017f801c1bb4b5d4856e988b892d90246a2..1f8350d2e314e9497fd58c11a125f15b51e98238:/cgi.py diff --git a/cgi.py b/cgi.py index cfa26f7..69b9038 100644 --- a/cgi.py +++ b/cgi.py @@ -419,7 +419,8 @@ def cgiparse(): else: PARAM.append((k, v)) if k in seen: - del PARAMDICT[k] + try: del PARAMDICT[k] + except KeyError: pass else: PARAMDICT[k] = v seen.add(k)