harvest-dev team mailing list archive
-
harvest-dev team
-
Mailing list archive
-
Message #00417
[Bug 658212] [NEW] don't fail on non-existing last-modified header entry
Public bug reported:
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'
** Affects: harvest
Importance: High
Assignee: Daniel Holbach (dholbach)
Status: In Progress
** Changed in: harvest
Importance: Undecided => High
** Changed in: harvest
Status: New => In Progress
** Changed in: harvest
Milestone: None => 0.2.2
** Changed in: harvest
Assignee: (unassigned) => Daniel Holbach (dholbach)
--
don't fail on non-existing last-modified header entry
https://bugs.launchpad.net/bugs/658212
You received this bug notification because you are a member of harvest-
dev, which is the registrant for harvest.
Status in Harvest Service: In Progress
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'
Follow ups
References