Skip to content
Snippets Groups Projects
Commit e31d031e authored by nkour's avatar nkour
Browse files

use else block in notify for failsafe values

parent 19a64469
No related branches found
No related tags found
No related merge requests found
......@@ -110,10 +110,6 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
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 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment