From 92569b5f91231e29744a0120ca8664c747a30854 Mon Sep 17 00:00:00 2001 From: HarJIT Date: Mon, 5 Oct 2020 15:54:02 +0100 Subject: [PATCH] Meta: raise does not work like print --- tools-clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools-clean.py b/tools-clean.py index 6344b15..bbfa01f 100644 --- a/tools-clean.py +++ b/tools-clean.py @@ -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")