2010/8/8 Pankaj Singh <singh.pankaj.iitkg...@gmail.com>: > problem got solved > > 1292 if params.get('expires'): > 1293 self.session_key_expires = int(params['expires']) > > I've just changed it to: > > 1292 if params.get('expires'): > > 1293 try: > 1294 self.session_key_expires = int(params['expires']) > 1295 except ValueError: > 1296 pass >
Which can be simplified to: self.session_key_expires = int(params.get('expires') or 0) Regards, -- Fabián E. Gallina http://www.from-the-cloud.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.