Permalink
Browse files

error_msg should be optional in the callback

  • Loading branch information...
1 parent 6e99ca8 commit c07ad4decb450a9f858ac80aef175229e9ad8084 @philwhln committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit c07ad4d

Please sign in to comment.