ubuntu-bengali-manual team mailing list archive
-
ubuntu-bengali-manual team
-
Mailing list archive
-
Message #02318
[Bug 612914] [NEW] reduce() of empty sequence with no initial value
Public bug reported:
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)
** Affects: loco-directory
Importance: Critical
Status: Triaged
** Changed in: loco-directory
Importance: Undecided => Critical
** Changed in: loco-directory
Status: New => Triaged
** Changed in: loco-directory
Milestone: None => 0.2.15
--
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: Triaged
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)
Follow ups
References