use else block in notify for failsafe values

This commit is contained in:
Nikos Kouremenos 2005-12-12 15:15:56 +00:00
parent 19a64469f4
commit e31d031ea3

View file

@ -110,10 +110,6 @@ class DesktopNotification:
else:
actor = jid
# defaul failsafe values
img = 'chat_msg_recv.png' # img to display
ntype = 'im' # Notification Type
txt = actor # default value of txt
if event_type == _('Contact Signed In'):
@ -182,6 +178,10 @@ class DesktopNotification:
img = 'ft_stopped.png'
else:
txt = ''
else:
# defaul failsafe values
img = 'chat_msg_recv.png' # img to display
ntype = 'im' # Notification Type
path = os.path.join(gajim.DATA_DIR, 'pixmaps', 'events', img)
path = os.path.abspath(path)