Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
b80b0c79
Commit
b80b0c79
authored
Apr 11, 2017
by
Ian Wood
Browse files
used more specific exception specifier (KeyError)
parent
1ca6ec52
Changes
1
Hide whitespace changes
Inline
Side-by-side
senpy/plugins/conversion/centroids.py
View file @
b80b0c79
...
...
@@ -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
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment