← Back to team overview

ubuntu-bengali-manual team mailing list archive

[Bug 612914] Re: reduce() of empty sequence with no initial value

 

** Changed in: loco-directory
       Status: In Progress => Fix Committed

-- 
reduce() of empty sequence with no initial value  
https://bugs.launchpad.net/bugs/612914
You received this bug notification because you are a member of Ubuntu
Bengali Manual, which is subscribed to loco-directory.

Status in LoCo Directory: Fix Committed

Bug description:
  File "/var/lib/python-support/python2.5/django/core/handlers/base.py", line 86, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/srv/loco.ubuntu.com/loco_directory/venues/views.py", line 34, in venue_list
    'countries_without_continent_have_venues': countries_without_continent_have_venues(),

  File "/srv/loco.ubuntu.com/loco_directory/teams/models.py", line 61, in countries_without_continent_have_venues
    return len(flat_list(list_of_venues))>0

  File "/srv/loco.ubuntu.com/loco_directory/common/utils.py", line 10, in flat_list
    return reduce(lambda a,b: a.extend(b) or a, some_list)





References