it returns None or ask. so catch ask too

This commit is contained in:
Nikos Kouremenos 2006-01-13 11:01:10 +00:00
parent 9e8163774d
commit b34005da3d
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ class Interface:
if show_notification:
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
jid)
if avatar_pixbuf is None:
if avatar_pixbuf in (None, 'ask'):
path_to_file = None
else:
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(
@ -397,7 +397,7 @@ class Interface:
if show_notification:
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
jid)
if avatar_pixbuf is None:
if avatar_pixbuf in (None, 'ask'):
path_to_file = None
else:
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(