We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the traceback:
>>> s = itsdangerous.TimedSerializer('a') >>> token = s.dumps('hello') >>> s.loads(token) u'hello' >>> s.loads(token, return_timestamp=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/private/tmp/dateutils/lib/python2.6/site-packages/itsdangerous.py", line 275, in loads return self.load_payload(base64d) File "/private/tmp/dateutils/lib/python2.6/site-packages/itsdangerous.py", line 220, in load_payload return self.serializer.loads(payload) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py", line 307, in loads return _default_decoder.decode(s) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer
The text was updated successfully, but these errors were encountered:
Fix issue pallets#3 and add proper unit test.
ea10d2d
Make TimedSerializer.loads() not to raise an error when return_timestamp=True.
Merge pull request #4 from daniele-nicolodi/master
3a153b0
Fix issue #3 and add proper unit test.
No branches or pull requests
Here is the traceback:
The text was updated successfully, but these errors were encountered: