Skip to content

Commit

Permalink
MAINT: removed now-unreachable except block
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcaporaso committed Sep 20, 2017
1 parent 9cebd13 commit 79ba8a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions q2_vsearch/_cluster_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ def _collapse_f_from_uc(uc):
pass

def collapse_f(id_, x):
try:
return id_to_centroid[id_]
except KeyError:
raise KeyError('ID %s is not present in clustering results. This '
'can happen when table and representative '
'sequences were not generated by the same process.'
% id_)
return id_to_centroid[id_]

return collapse_f

Expand Down
2 changes: 1 addition & 1 deletion q2_vsearch/tests/test_cluster_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from q2_vsearch._cluster_features import cluster_features_denovo


class ClusterFeatureDenovoTests(TestPluginBase):
class ClusterFeaturesDenovoTests(TestPluginBase):

package = 'q2_vsearch.tests'

Expand Down

0 comments on commit 79ba8a3

Please sign in to comment.