git.ucc.asn.au
/
planet-ucc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
and again
[planet-ucc.git]
/
CacheHandler.py
diff --git
a/CacheHandler.py
b/CacheHandler.py
index
cc5c87b
..
3463d71
100644
(file)
--- a/
CacheHandler.py
+++ b/
CacheHandler.py
@@
-18,7
+18,8
@@
class CacheHandler:
try:
cPickle.dump(blog, open(os.path.join('cache', name), 'w'))
except:
try:
cPickle.dump(blog, open(os.path.join('cache', name), 'w'))
except:
- sys.stderr.write('DEBUG: CacheHandler: Item could not be written to cache\n')
+# sys.stderr.write('DEBUG: CacheHandler: Item could not be written to cache\n')
+ pass
def getBlog(self, title, feed):
name = self.__create_name__(title, feed)
def getBlog(self, title, feed):
name = self.__create_name__(title, feed)
@@
-27,7
+28,7
@@
class CacheHandler:
blog = cPickle.load(open(os.path.join('cache', name)))
except:
blog = None
blog = cPickle.load(open(os.path.join('cache', name)))
except:
blog = None
-
sys.stderr.write('DEBUG: CacheHandler: Could not read item from cache\n')
+
#
sys.stderr.write('DEBUG: CacheHandler: Could not read item from cache\n')
return blog
class CacheObject:
return blog
class CacheObject:
UCC
git Repository :: git.ucc.asn.au