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
I get the following error when trying to use pyfacebook in pylons environment:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
It is generated in the following line:
params = dict([part.split('=') for part in cookies[cookie_name]])
As the cookies[cookie_name] is a string, the comprehension iterates over characters. I believe that changing this line to:
params = dict([part.split('=') for part in cookies[cookie_name].split('&')])
would fix the problem, but would break compatibility with some other frameworks. What should I do?
The text was updated successfully, but these errors were encountered:
I get the following error when trying to use pyfacebook in pylons environment:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
It is generated in the following line:
params = dict([part.split('=') for part in cookies[cookie_name]])
As the cookies[cookie_name] is a string, the comprehension iterates over characters. I believe that changing this line to:
params = dict([part.split('=') for part in cookies[cookie_name].split('&')])
would fix the problem, but would break compatibility with some other frameworks. What should I do?
The text was updated successfully, but these errors were encountered: