diff options
author | Mauricio Aizaga <mauricioaizaga@gmail.com> | 2015-10-22 16:46:01 -0500 |
---|---|---|
committer | Mauricio Aizaga <mauricioaizaga@gmail.com> | 2015-10-22 16:46:01 -0500 |
commit | 9f39f38a34569541691bf1b068fc8b3717f13d64 (patch) | |
tree | 2fd1ce4fbe68f7f7538db1dea289f6f99f0000eb | |
parent | 139dd05d1589ddcb4f8c9bd1b16b743ee4fcd2f6 (diff) | |
download | pyjwt-9f39f38a34569541691bf1b068fc8b3717f13d64.tar.gz |
Fixed syntax for python 2.6
-rw-r--r-- | jwt/api_jws.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/api_jws.py b/jwt/api_jws.py index 557812e..dcb2647 100644 --- a/jwt/api_jws.py +++ b/jwt/api_jws.py @@ -139,7 +139,7 @@ class PyJWS(object): signing_input, crypto_segment = jwt.rsplit(b'.', 1) header_segment, payload_segment = signing_input.split(b'.', 1) except AttributeError: - raise DecodeError('Invalid payload type. It should be a {} not {}'.format( + raise DecodeError('Invalid payload type. It should be a {0} not {1}'.format( text_type, type(jwt))) except ValueError: raise DecodeError('Not enough segments') |