##// END OF EJS Templates
notify: be more defensive aboute None values...
Gregory Szorc -
r41449:43f9b8c0 default
parent child Browse files
Show More
@@ -367,8 +367,12 b' class notifier(object):'
367 raise error.Abort(inst)
367 raise error.Abort(inst)
368
368
369 # store sender and subject
369 # store sender and subject
370 sender = encoding.strtolocal(msg[r'From'])
370 sender = msg[r'From']
371 subject = encoding.strtolocal(msg[r'Subject'])
371 subject = msg[r'Subject']
372 if sender is not None:
373 sender = encoding.strtolocal(sender)
374 if subject is not None:
375 subject = encoding.strtolocal(subject)
372 del msg[r'From'], msg[r'Subject']
376 del msg[r'From'], msg[r'Subject']
373
377
374 if not msg.is_multipart():
378 if not msg.is_multipart():
General Comments 0
You need to be logged in to leave comments. Login now