Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Anti-censorship
BridgeDB
Commits
9861fdf7
Unverified
Commit
9861fdf7
authored
Jun 04, 2014
by
Isis Lovecruft
Browse files
Add try/except around parent class errback call in SMTPAutoresponder.
parent
c509a0ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bridgedb/email/autoresponder.py
View file @
9861fdf7
...
...
@@ -531,8 +531,14 @@ class SMTPAutoresponder(smtp.SMTPClient):
error
=
fail
logging
.
error
(
error
)
# This handles QUIT commands, disconnecting, and closing the transport:
smtp
.
SMTPClient
.
sendError
(
self
,
fail
)
try
:
# This handles QUIT commands, disconnecting, and closing the
# transport:
smtp
.
SMTPClient
.
sendError
(
self
,
fail
)
# We might not have `transport` and `protocol` attributes, depending
# on when and where the error occurred, so just catch and log it:
except
Exception
as
error
:
logging
.
error
(
error
)
def
reply
(
self
):
"""Reply to an incoming email. Maybe.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment