used more specific exception specifier (KeyError)

pull/29/head
Ian Wood 7 years ago
parent 1ca6ec52fd
commit b80b0c7947

@ -49,7 +49,7 @@ class CentroidConversion(EmotionConversionPlugin):
totalIntensities[dim] += intensity
try:
res[dim] += value * intensity
except Exception:
except KeyError:
res[dim] = value * intensity
for dim,intensity in totalIntensities.items():

Loading…
Cancel
Save