Fix string injection for InvalidScope

The string injection in the error message for InvalidScope was
missing a leading `%`.

Change-Id: Id69a8c9eaa76d3783dd5919e1aa0aa26a36a24a1
This commit is contained in:
Lance Bragstad 2017-12-14 18:38:57 +00:00
parent 5f473195b2
commit 888fa23ebe
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ class InvalidScope(Exception):
def __init__(self, rule, operation_scopes, token_scope):
msg = (
"(rule)s requires a scope of %(operation_scopes)s, request "
"%(rule)s requires a scope of %(operation_scopes)s, request "
"was made with %(token_scope)s scope." % {
'rule': rule,
'operation_scopes': operation_scopes,