You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def to_python(self, value):
if value is None: return
if not isinstance(value, basestring): return value
value = pickle.loads(base64.b64decode(value))
return value
ERROR:
return base64.b64decode(value)
File "/usr/lib/python2.6/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
This works for me:
def to_python(self, value):
try:
if value is None: return
if not isinstance(value, basestring): return value
value = pickle.loads(base64.b64decode(value))
return value
except TypeError:
return value
The text was updated successfully, but these errors were encountered:
Thanks for mentioning this. I personally use justquicks activity stream now, since it is easier to set up and manage and you should do the same if you have not started using this one yet.
I don't have time to look into this problem at the moment since I have deadlines with other projects, if possible send me a pull request.
Hi,
I found an error in your activity stream,
def to_python(self, value):
if value is None: return
if not isinstance(value, basestring): return value
value = pickle.loads(base64.b64decode(value))
return value
ERROR:
return base64.b64decode(value)
File "/usr/lib/python2.6/base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
This works for me:
The text was updated successfully, but these errors were encountered: