summaryrefslogtreecommitdiff
path: root/src/mailman/queue/lmtp.py
diff options
context:
space:
mode:
authorBarry Warsaw2010-12-31 13:17:16 -0500
committerBarry Warsaw2010-12-31 13:17:16 -0500
commitd0f8e9e03d3c55641165b73a4d8971ec514a9cdc (patch)
tree5f1eab6eb5f863dc76c12b940262d3fee4b26688 /src/mailman/queue/lmtp.py
parent534e90fea33c52585c74fa9127cca8b70178d5e0 (diff)
downloadmailman-d0f8e9e03d3c55641165b73a4d8971ec514a9cdc.tar.gz
mailman-d0f8e9e03d3c55641165b73a4d8971ec514a9cdc.tar.zst
mailman-d0f8e9e03d3c55641165b73a4d8971ec514a9cdc.zip
Diffstat (limited to 'src/mailman/queue/lmtp.py')
-rw-r--r--src/mailman/queue/lmtp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/queue/lmtp.py b/src/mailman/queue/lmtp.py
index dcca201e8..7fcd0c70c 100644
--- a/src/mailman/queue/lmtp.py
+++ b/src/mailman/queue/lmtp.py
@@ -146,7 +146,7 @@ class LMTPRunner(Runner, smtpd.SMTPServer):
def handle_accept(self):
conn, addr = self.accept()
- channel = Channel(self, conn, addr)
+ Channel(self, conn, addr)
qlog.debug('LMTP accept from %s', addr)
@txn
@@ -163,7 +163,7 @@ class LMTPRunner(Runner, smtpd.SMTPServer):
return ERR_501
msg['X-MailFrom'] = mailfrom
message_id = msg['message-id']
- except Exception, e:
+ except Exception:
elog.exception('LMTP message parsing')
config.db.abort()
return CRLF.join(ERR_451 for to in rcpttos)