[minor] replace 'raise e' with 'raise' for correct tracebacks

This commit is contained in:
Anand Doshi
2013-11-12 17:28:17 +05:30
parent 4f642e7670
commit 5f73a980b5
9 changed files with 12 additions and 12 deletions

View File

@@ -52,7 +52,7 @@ class DocType:
inc_email.password = self.doc.support_password
except AttributeError, e:
webnotes.msgprint(err_msg)
raise e
raise
pop_mb = POP3Mailbox(inc_email)
@@ -61,7 +61,7 @@ class DocType:
except _socket.error, e:
# Invalid mail server -- due to refusing connection
webnotes.msgprint('Invalid POP3 Mail Server. Please rectify and try again.')
raise e
raise
except poplib.error_proto, e:
webnotes.msgprint('Invalid User Name or Support Password. Please rectify and try again.')
raise e
raise