harvest-dev team mailing list archive
-
harvest-dev team
-
Mailing list archive
-
Message #00418
[Merge] lp:~dholbach/harvest/658212 into lp:harvest
Daniel Holbach has proposed merging lp:~dholbach/harvest/658212 into lp:harvest.
Requested reviews:
harvest-dev (harvest-dev)
Related bugs:
#658212 don't fail on non-existing last-modified header entry
https://bugs.launchpad.net/bugs/658212
--
https://code.launchpad.net/~dholbach/harvest/658212/+merge/38104
Your team harvest-dev is requested to review the proposed merge of lp:~dholbach/harvest/658212 into lp:harvest.
=== modified file 'harvest/common/opportunity_lists.py'
--- harvest/common/opportunity_lists.py 2010-10-06 16:14:24 +0000
+++ harvest/common/opportunity_lists.py 2010-10-11 10:11:43 +0000
@@ -15,8 +15,8 @@
except:
return [None, None]
- timestamp_lm = None
- if sock.info()["Last-Modified"]:
+ datetime_lm = None
+ if sock.info().has_key("Last-Modified") and sock.info()["Last-Modified"]:
lm_string = sock.info()["Last-Modified"]
if lm_string:
timestamp_lm = time.mktime(time.strptime(lm_string,