1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 13:08:13 +00:00

used more specific exception specifier (KeyError)

This commit is contained in:
Ian Wood 2017-04-11 11:25:50 +01:00
parent 1ca6ec52fd
commit b80b0c7947

View File

@ -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():