From 4b8a680f039872cdd032fada121be4b25184cf64 Mon Sep 17 00:00:00 2001 From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de> Date: Mon, 29 Aug 2016 10:53:45 +0200 Subject: [PATCH] Explictly state expected exception type for style reasons --- python/dune/perftool/pdelab/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dune/perftool/pdelab/driver.py b/python/dune/perftool/pdelab/driver.py index 6bed1ab6..11c66909 100644 --- a/python/dune/perftool/pdelab/driver.py +++ b/python/dune/perftool/pdelab/driver.py @@ -78,7 +78,7 @@ def mass_form_index(formdatas, data): try: if data.object_names[id(formdata.original_form)] == 'mass': return index - except: + except KeyError: continue -- GitLab