mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
[minor] replace 'raise e' with 'raise' for correct tracebacks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user