summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/authentication.py b/pyramid/authentication.py
index 0484687ed..cee339532 100644
--- a/pyramid/authentication.py
+++ b/pyramid/authentication.py
@@ -483,7 +483,7 @@ class AuthTktCookieHelper(object):
for token in tokens:
if not (isinstance(token, str) and VALID_TOKEN.match(token)):
- raise ValueError("Invalid token %r", token)
+ raise ValueError("Invalid token %r" % (token,))
ticket = self.auth_tkt.AuthTicket(
self.secret,