From 92bd16eea944451ea3063c954c0fecb7c32e81df Mon Sep 17 00:00:00 2001 From: Matthias Diener Date: Tue, 11 May 2021 10:47:47 -0500 Subject: [PATCH] add missing 'name' --- pytools/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytools/__init__.py b/pytools/__init__.py index 0ffd8f4..bd654ea 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -2176,9 +2176,9 @@ class UniqueNameGenerator: def add_name(self, name: str) -> None: if self.is_name_conflicting(name): - raise ValueError("name '%s' conflicts with existing names") + raise ValueError("name '%s' conflicts with existing names" % name) if not name.startswith(self.forced_prefix): - raise ValueError("name '%s' does not start with required prefix") + raise ValueError("name '%s' does not start with required prefix" % name) self.existing_names.add(name) self._name_added(name) -- GitLab