mirror of
https://github.com/gsi-upm/senpy
synced 2025-08-24 02:22:20 +00:00
used more specific exception specifier (KeyError)
This commit is contained in:
@@ -49,7 +49,7 @@ class CentroidConversion(EmotionConversionPlugin):
|
|||||||
totalIntensities[dim] += intensity
|
totalIntensities[dim] += intensity
|
||||||
try:
|
try:
|
||||||
res[dim] += value * intensity
|
res[dim] += value * intensity
|
||||||
except Exception:
|
except KeyError:
|
||||||
res[dim] = value * intensity
|
res[dim] = value * intensity
|
||||||
|
|
||||||
for dim,intensity in totalIntensities.items():
|
for dim,intensity in totalIntensities.items():
|
||||||
|
Reference in New Issue
Block a user