don't fail on non-existing last-modified header entry

Bug #658212 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
harvest
Fix Released
High
Daniel Holbach

Bug Description

 File "/home/daniel/bzr/harvest.656221/harvest/opportunities/management/commands/updateopportunities.py", line 21, in update_lists
    (entries, new_date) = opportunity_lists.read_entries(op_list.url, op_list.last_updated)
  File "/home/daniel/bzr/harvest.656221/harvest/common/opportunity_lists.py", line 16, in read_entries
    if sock.info()["Last-Modified"]:
  File "/usr/lib/python2.6/rfc822.py", line 388, in __getitem__
    return self.dict[name.lower()]
KeyError: 'last-modified'

Related branches

Changed in harvest:
assignee: nobody → Daniel Holbach (dholbach)
importance: Undecided → High
milestone: none → 0.2.2
status: New → In Progress
Changed in harvest:
status: In Progress → Fix Committed
Changed in harvest:
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.