reduce() of empty sequence with no initial value

Bug #612914 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
Critical
Daniel Holbach

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)

Related branches

Changed in loco-directory:
importance: Undecided → Critical
milestone: none → 0.2.15
status: New → Triaged
Revision history for this message
Daniel Holbach (dholbach) wrote :

Attached branch was already cowboyed into production.

Changed in loco-directory:
assignee: nobody → Daniel Holbach (dholbach)
status: Triaged → In Progress
Changed in loco-directory:
status: In Progress → Fix Committed
Changed in loco-directory:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.