Changeset 3317
- Timestamp:
- 02/02/08 15:33:36 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r3311 r3317 239 239 (msg, \ 240 240 "\n".join([" %s" % repr(a) for a in sys.argv]), \ 241 "\n".join([" %s=%s" % (k, v) for (k, v) in os.environ.items()]))241 "\n".join([" %s=%s" % (k, repr(v)) for (k, v) in os.environ.items()])) 242 242 try : 243 243 crashrecipient = self.config.getCrashRecipient() … … 245 245 admin = self.config.getAdminMail("global") # Nice trick, isn't it ? 246 246 server = smtplib.SMTP(self.smtpserver) 247 msg = MIMEText(fullmessage , _charset=self.charset)247 msg = MIMEText(fullmessage.encode(self.charset, "replace"), _charset=self.charset) 248 248 msg["Subject"] = Header("PyKota v%s crash traceback !" \ 249 249 % __version__, charset=self.charset, errors="replace") … … 255 255 server.quit() 256 256 except : 257 pass 257 self.printInfo("PyKota double crash !", "error") 258 raise 258 259 return fullmessage 259 260