From 3e862d517c15d611b5736bc14b1c2ce2d12a7f2e Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 10 Apr 2007 15:14:19 -0400 Subject: [PATCH] Ensure icon cache directory exists --- services/presence/buddyiconcache.py | 1 + 1 file changed, 1 insertion(+) diff --git a/services/presence/buddyiconcache.py b/services/presence/buddyiconcache.py index 80c6813e..371b0f54 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 = ''