[CalendarServer-users] Sending iMIP messages with no icon-pngs fails, possible fix

Markus Stürmer markus.stuermer at informatik.uni-erlangen.de
Fri Apr 17 05:33:02 PDT 2009

I think I found a small bug in

When providing no icons,
	1114         iconPath = self.getIconPath(details, canceled,  
will set iconPath to "None" and
	1280         if os.path.exists(iconPath) and htmlTemplate.find("cid:% 
(iconName)s") != -1:
will fail with such an error message:
2009-04-17 14:23:27+0200 [-] [mailgateway] 	exceptions.TypeError:  
coercing to Unicode: need string or buffer, NoneType found

I catched that case by extending the test:
1280         if iconPath != None and os.path.exists(iconPath) and  
htmlTemplate.find("cid:%(iconName)s") != -1:


More information about the calendarserver-users mailing list