Commit 8cf30efb authored by Colomban Wendling's avatar Colomban Wendling
Browse files

Remove a stupid and useless exception handler

Don't explicitly handle KeyboardInterrupt in the mail thread as it
doesn't seem it ever was of of any use, and could actually lead to
a deadlock as it would terminate the in-thread loop without emptying
the queue, leading to `queue.join()` in `quit()` to wait forever for
the queue to empty.
parent 2a65dc4f
......@@ -52,8 +52,6 @@ class ThreadedSMTP(object):
except queue.Empty:
server = self.__server_quit(server)
task_eaten = False # we didn't eat a task, just timeout
except KeyboardInterrupt as e:
if len(args) or len(kwargs): # ignore empty items
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment