KeyError: 'promulgated'

Bug #1233162 reported by Curtis Hovey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charmworld
Fix Released
High
j.c.sackett

Bug Description

The following error happened 22, 16, 10, and 4 hours ago. I think all charms were guaranteed to a 'promulgated' key early in the ingest process, something has changed. I think cmp() is deprecated also.

2013-09-29 14:26:31 [17216] [ERROR] http://staging.jujucharms.com/search/json?search_text=ceph
Traceback (most recent call last):
  File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyramid_exclog/__init__.py", line 44, in exclog_tween
    return handler(request)
  File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyramid/router.py", line 161, in handle_request
    response = view_callable(context, request)
  File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyramid/config/views.py", line 375, in viewresult_to_response
    result = view(context, request)
  File "/home/webops_deploy/charmworld/local/lib/python2.7/site-packages/pyramid/config/views.py", line 491, in _requestonly_view
    response = view(request)
  File "/home/webops_deploy/charmworld/charmworld/views/search.py", line 72, in search_json
    charms.sort(result_sorter)
  File "/home/webops_deploy/charmworld/charmworld/views/helpers.py", line 103, in result_sorter
    review_cmp = cmp(b['promulgated'], a['promulgated'])
KeyError: 'promulgated'

Related branches

Curtis Hovey (sinzui)
tags: added: regression
j.c.sackett (jcsackett)
Changed in charmworld:
assignee: nobody → j.c.sackett (jcsackett)
status: Triaged → In Progress
Revision history for this message
Juju Gui Bot (juju-gui-bot) wrote :

Fix committed into lp:charmworld at revision None, scheduled for release in charmworld, milestone Unknown

Changed in charmworld:
status: In Progress → Fix Committed
j.c.sackett (jcsackett)
Changed in charmworld:
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.