equeny/tornadomail — Issue #2: 'IOError: [Errno 17] File exists' when sending mail
Author: ponimas
Created: 2012-01-13 11:58:22+00:00
State: open

message is sent ok, but i get error

Traceback (most recent call last):
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/stack_context.py", line 183, in wrapped
callback(*args, **kwargs)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 332, in inner
self.set_result(key, result)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 274, in set_result
self.run()
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 303, in run
yielded = self.gen.send(next)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornadomail/smtplib.py", line 369, in getreply
callback(errcode, errmsg)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 332, in inner
self.set_result(key, result)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 274, in set_result
self.run()
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 303, in run
yielded = self.gen.send(next)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornadomail/smtplib.py", line 678, in starttls
callback(resp, reply)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 332, in inner
self.set_result(key, result)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 274, in set_result
self.run()
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 318, in run
self.yield_point.start(self)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 207, in start
self.func(*self.args, **self.kwargs)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 91, in wrapper
Runner(gen).run()
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 318, in run
self.yield_point.start(self)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/gen.py", line 207, in start
self.func(*self.args, **self.kwargs)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornadomail/smtplib.py", line 327, in putcmd
self.send(str, callback=callback)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornadomail/smtplib.py", line 314, in send
self.sock.write(str, callback)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/iostream.py", line 218, in write
self._add_io_state(self.io_loop.WRITE)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/iostream.py", line 544, in _add_io_state
self.socket.fileno(), self._handle_events, self._state)
File "/home/alexp/shop/.ve/lib/python2.6/site-packages/tornado/ioloop.py", line 182, in add_handler
self._impl.register(fd, events | self.ERROR)
IOError: [Errno 17] File exists