Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit d3ee8b9

Browse files
authored
Merge pull request #8 from freesinger/bug-fix
[bug] fix raise string error
2 parents fe0898e + 084d901 commit d3ee8b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def classify(self, taginfo, srt_dens, min_num, maxid):
5151
if taginfo[i] == -1:
5252
taginfo[i] = taginfo[min_num[i]]
5353
except KeyError:
54-
raise 'Key error: key does not exist!'
54+
raise KeyError('Key error: key does not exist!')
5555

5656
return taginfo
5757

0 commit comments

Comments
 (0)