diff options
author | Dan Williams <dcbw@redhat.com> | 2007-04-10 19:14:19 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-04-10 19:14:19 (GMT) |
commit | 3e862d517c15d611b5736bc14b1c2ce2d12a7f2e (patch) | |
tree | 738f54c20b6f3e7c80d989283b31fdb63cadcdb0 /services | |
parent | 8d4d87a081f8b211520a5123fc91d2813bc4b8b3 (diff) |
Ensure icon cache directory exists
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/buddyiconcache.py | 1 |
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 = '' |