projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
548c586
)
Fixing a bug with avatars
author
Ed Page
<eopage@byu.net>
Wed, 24 Feb 2010 03:43:08 +0000
(21:43 -0600)
committer
Ed Page
<eopage@byu.net>
Wed, 24 Feb 2010 03:43:08 +0000
(21:43 -0600)
src/avatars.py
patch
|
blob
|
history
diff --git
a/src/avatars.py
b/src/avatars.py
index
0aa8ad4
..
5583d49
100644
(file)
--- a/
src/avatars.py
+++ b/
src/avatars.py
@@
-119,7
+119,7
@@
class AvatarsMixin(tp.server.ConnectionInterfaceAvatars):
def _get_avatar(self, imageName):
try:
return self._avatarCache[imageName]
- except AttributeError:
+ except KeyError:
image = self._load_avatar(imageName)
self._avatarCache[imageName] = image
return image