Preferences/ConfigurationPages/EmailPage.py

changeset 3038
7fe9a53280bd
parent 3034
7ce719013078
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3037:a417a0670a36 3038:7fe9a53280bd
151 E5MessageBox.critical( 151 E5MessageBox.critical(
152 self, 152 self,
153 self.trUtf8("Login Test"), 153 self.trUtf8("Login Test"),
154 self.trUtf8( 154 self.trUtf8(
155 """<p>The login test failed.<br>Reason: {0}</p>""") 155 """<p>The login test failed.<br>Reason: {0}</p>""")
156 .format(errorStr)) 156 .format(errorStr))
157 server.quit() 157 server.quit()
158 except (smtplib.SMTPException, socket.error) as e: 158 except (smtplib.SMTPException, socket.error) as e:
159 QApplication.restoreOverrideCursor() 159 QApplication.restoreOverrideCursor()
160 if isinstance(e, smtplib.SMTPResponseException): 160 if isinstance(e, smtplib.SMTPResponseException):
161 errorStr = e.smtp_error.decode() 161 errorStr = e.smtp_error.decode()
170 errorStr = str(e) 170 errorStr = str(e)
171 E5MessageBox.critical( 171 E5MessageBox.critical(
172 self, 172 self,
173 self.trUtf8("Login Test"), 173 self.trUtf8("Login Test"),
174 self.trUtf8("""<p>The login test failed.<br>Reason: {0}</p>""") 174 self.trUtf8("""<p>The login test failed.<br>Reason: {0}</p>""")
175 .format(errorStr)) 175 .format(errorStr))
176 176
177 177
178 def create(dlg): 178 def create(dlg):
179 """ 179 """
180 Module function to create the configuration page. 180 Module function to create the configuration page.

eric ide

mercurial