Follow-up for bug-1891244
This patch closes the review comments of [1]. [1]https://review.opendev.org/#/c/745752/ Change-Id: I06b02b2ebfed35d4e82c5fc35ce8eb0bb20b2fc5
This commit is contained in:
parent
7d6c71ba26
commit
88197d2175
@ -172,8 +172,8 @@ class TokenFormatter(object):
|
||||
serialized_payload = self.unpack(token)
|
||||
# TODO(melwitt): msgpack changed their data format in version 1.0, so
|
||||
# in order to support a rolling upgrade, we must pass raw=True to
|
||||
# to support the old format. The try-except may be removed in the once
|
||||
# the N-1 release no longer supports msgpack < 1.0.
|
||||
# support the old format. The try-except may be removed once the
|
||||
# N-1 release no longer supports msgpack < 1.0.
|
||||
try:
|
||||
versioned_payload = msgpack.unpackb(serialized_payload)
|
||||
except UnicodeDecodeError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user