From 70b487ce56a52ae51eccb89d2e1ae57485a30f59 Mon Sep 17 00:00:00 2001 From: davyd Date: Thu, 12 Feb 2004 04:39:10 +0000 Subject: [PATCH] CacheHandler fixes --- XMLParse2.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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'): -- 2.20.1