tags plugin
"Sebastian Spaeth" <[email protected]> Tue, 04 May 2010 11:38:31 +0200
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
The current tags plugin in git uses this code:
try:
flavour = form["flav"].value
except AttributeError:
flavour = config.get("default_flavour", "html")
baseurl = config.get("base_url", "")
trigger = config.get("tags_trigger", "tag")
However, it raises KeyError, not AttributeError for me when no
?flav=html is appended, crashing the cgi process.
Is AttributeError really the right thing to use here? Otherwise let's
except KeyError only. THis fixes it and makes my blog work.
THanks for applying or do you want me to push? (or provide a patch to
pull?)
Sebastian
P.S. I think both fixes from today should still go in before we declare
1.5 as ready.
------------------------------------------------------------------------------
_______________________________________________
Pyblosxom-devel mailing list
Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvf6xcACgkQVYX1jMgnoGIpSACbBchBjKuovNJyjyOO1/OXK371 UuIAn3hGkN1W/3/z8J+qAO9ifO5qR57k =Mifj -----END PGP SIGNATURE-----