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?
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?