Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-04-10 19:14:19 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-04-10 19:14:19 (GMT)
commit3e862d517c15d611b5736bc14b1c2ce2d12a7f2e (patch)
tree738f54c20b6f3e7c80d989283b31fdb63cadcdb0 /services
parent8d4d87a081f8b211520a5123fc91d2813bc4b8b3 (diff)
Ensure icon cache directory exists
Diffstat (limited to 'services')
-rw-r--r--services/presence/buddyiconcache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/presence/buddyiconcache.py b/services/presence/buddyiconcache.py
index 80c6813..371b0f5 100644
--- a/services/presence/buddyiconcache.py
+++ b/services/presence/buddyiconcache.py
@@ -28,6 +28,7 @@ class BuddyIconCache(object):
self._cachepath = os.path.join(ppath, "cache", "buddy-icons", "cache")
if not os.path.exists(self._cachepath):
+ os.makedirs(self._cachepath)
self._cache = {}
# md5 and server token of the last avatar uploaded
self._md5 = ''