summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-24 22:05:23 -0500
committerChris McDonough <chrism@plope.com>2011-01-24 22:05:23 -0500
commitb05272338c8d2fa8393ed5489c2bdebe16eb46a7 (patch)
treed51e0f33b3c80739769fcefe2bc28fceaad85c84
parent42a58bb29f922b381b7db0f1bdb63cd48e699f29 (diff)
downloadpyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.tar.gz
pyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.tar.bz2
pyramid-b05272338c8d2fa8393ed5489c2bdebe16eb46a7.zip
render token in ValueError instead of passing it as a second arg
-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,