pyfacebook icon indicating copy to clipboard operation
pyfacebook copied to clipboard

ValueError in facebook.__init__.py

Open kasun opened this issue 15 years ago • 2 comments

When tried to connect through a django app the following error occurs.

Exception in request: Traceback (most recent call last): File "/base/data/home/apps/app-name/1.339079629847560090/common/zip-packages/django-1.1.zip/django/core/handlers/base.py", line 92, in get_response response = callback(request, _callback_args, *_callback_kwargs) File "/base/data/home/apps/app-name/1.339079629847560090/facebook/djangofb/init.py", line 87, in newview if not fb.check_session(request): File "/base/data/home/apps/app-name/1.339079629847560090/facebook/init.py", line 1293, in check_session self.session_key_expires = int(params['expires']) ValueError: invalid literal for int() with base 10: 'None'

The error could be solved by replacing line 1292 by this

if params.get('expires'): if params['expires'] == 'None': params['expires'] = 0
self.session_key_expires = int(params['expires'])

kasun avatar Feb 24 '10 19:02 kasun

Duplicate of #26 and #30 :)

jezdez avatar Mar 03 '10 15:03 jezdez

When are you planning to merge this into master?

kennym avatar Nov 18 '10 00:11 kennym