Skip to content

Commit

Permalink
Meta: raise does not work like print
Browse files Browse the repository at this point in the history
  • Loading branch information
HarJIT authored Oct 5, 2020
1 parent 7f17654 commit 92569b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools-clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
encoding["labels"] = labels
for label in labels:
if label in labelsseen:
raise("Duplicate label: ", label)
raise ValueError("Duplicate label: {!r}".format(label))
labelsseen.append(label)

handle = open(filename, "w")
Expand Down

0 comments on commit 92569b5

Please sign in to comment.