From: davyd Date: Thu, 12 Feb 2004 04:39:10 +0000 (+0000) Subject: CacheHandler fixes X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=70b487ce56a52ae51eccb89d2e1ae57485a30f59;p=planet-ucc.git CacheHandler fixes --- diff --git a/XMLParse2.py b/XMLParse2.py index 8f6dc7e..563a0fa 100644 --- a/XMLParse2.py +++ b/XMLParse2.py @@ -61,10 +61,17 @@ class XMLParse: # create caching data try: cache = CacheHandler.CacheObject() - cache.etag = data['etag'] - cache.date = data['modified'] + try: + cache.etag = data['etag'] + except: + cache.etag = None + try: + cache.date = data['modified'] + except: + cache.date = None item.cache = cache except: + sys.stderr.write('DEBUG: XMLParse2: cache item generation failed\n') item.cache = None # parse the return of data into a blog if data['channel'].has_key('title'):