Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

error_msg should be optional in the callback

  • Loading branch information...
commit c07ad4decb450a9f858ac80aef175229e9ad8084 1 parent 6e99ca8
@philwhln authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/tornado/smtp/client.py
View
2  src/tornado/smtp/client.py
@@ -147,7 +147,7 @@ def send_test():
client = SMTPClient('localhost', 25)
body = "Subject: Testing\n\nJust a test"
client.send('foo@example.com', ['recipient@example.com'], body, callback=sent_test)
- def sent_test(success, error_msg):
+ def sent_test(success, error_msg=None):
if success:
print "Sent OK"
else:
Please sign in to comment.
Something went wrong with that request. Please try again.