# HG changeset patch # User Dirkjan Ochtman # Date 2008-06-13 10:34:23 # Node ID be55b1a6d4b1cb5c4d7023f62d368c6280fc25dd # Parent 034f444902d91be51c5938463a1e25fdb5d0f0c3 # Parent 782dbbdfb1d762ed3b6ae22bd14a0b599bec79a0 merge from crew-stable diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -538,7 +538,7 @@ def filelog(web, req, tmpl): def archive(web, req, tmpl): - type_ = req.form['type'][0] + type_ = req.form.get('type', [None])[0] allowed = web.configlist("web", "allow_archive") key = req.form['node'][0]