Skip to content

Commit

Permalink
fixes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Jemian committed Feb 12, 2019
1 parent 3c59934 commit 4bc9fec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apstools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import subprocess
import time

from .plans import run_in_thread


logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -114,6 +116,7 @@ def add_addresses(self, *args):
for address in args:
self.addresses.append(address)

@run_in_thread
def send(self, subject, message):
"""send ``message`` to all addresses"""
msg = MIMEText(message)
Expand Down

0 comments on commit 4bc9fec

Please sign in to comment.