Commit b80b0c79 authored by Ian Wood's avatar Ian Wood
Browse files

used more specific exception specifier (KeyError)

parent 1ca6ec52
......@@ -49,7 +49,7 @@ class CentroidConversion(EmotionConversionPlugin):
totalIntensities[dim] += intensity
res[dim] += value * intensity
except Exception:
except KeyError:
res[dim] = value * intensity
for dim,intensity in totalIntensities.items():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment