# HG changeset patch # User BenoƮt Allard # Date 1414403692 -3600 # Node ID 64a6e69d54fc5944a9481cd0a98a8c2f2b66970f # Parent 5e923734063088f81fcc955e8a9f3bb9f5cb5ba4 Fix an issue where the Wrong Exception was being caught. diff -r 5e9237340630 -r 64a6e69d54fc farol/producttree.py --- 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],