import util.misc as misc_utils
-_moduleLogger = logging.getLogger('avatars')
+_moduleLogger = logging.getLogger(__name__)
class AvatarsMixin(tp.server.ConnectionInterfaceAvatars):
__OTHER_AVATAR = "tor_question"
__LOOKUP_PATHS = (
+ "/opt/theonering/share",
"/usr/share/theonering",
os.path.join(os.path.dirname(__file__), "../support/icons"),
)
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