UI/EmailDialog.py

changeset 5473
3074cca59d43
parent 5443
3ef014765648
child 5603
4f2dd0850803
equal deleted inserted replaced
5467:44ab42f1e8b1 5473:3074cca59d43
337 if isinstance(e, smtplib.SMTPResponseException): 337 if isinstance(e, smtplib.SMTPResponseException):
338 errorStr = e.smtp_error.decode() 338 errorStr = e.smtp_error.decode()
339 elif isinstance(e, smtplib.SMTPException): 339 elif isinstance(e, smtplib.SMTPException):
340 errorStr = str(e) 340 errorStr = str(e)
341 elif isinstance(e, socket.error): 341 elif isinstance(e, socket.error):
342 errorStr = e[1] 342 errorStr = e.strerror
343 else: 343 else:
344 errorStr = str(e) 344 errorStr = str(e)
345 res = E5MessageBox.retryAbort( 345 res = E5MessageBox.retryAbort(
346 self, 346 self,
347 self.tr("Send bug report"), 347 self.tr("Send bug report"),

eric ide

mercurial