Mercurial > farol
changeset 136:64a6e69d54fc
Fix an issue where the Wrong Exception was being caught.
author | Benoît Allard <benoit.allard@greenbone.net> |
---|---|
date | Mon, 27 Oct 2014 10:54:52 +0100 |
parents | 5e9237340630 |
children | 5a44d377aad5 |
files | farol/producttree.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/farol/producttree.py Fri Oct 24 14:55:00 2014 +0200 +++ b/farol/producttree.py Mon Oct 27 10:54:52 2014 +0100 @@ -144,7 +144,7 @@ cvrf = get_current() try: product = cvrf.getProductForID(productid) - except IndexError: + except KeyError: abort(404) return render_template('producttree/view_product.j2', product=product, groups=[g for g in cvrf._producttree._groups if productid in g._productids],