Skip to content

Commit

Permalink
Fix #516
Browse files Browse the repository at this point in the history
  • Loading branch information
srbdev committed Oct 21, 2015
1 parent 241c9d5 commit 97b87a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/slycat/email.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import subprocess
import slycat.web.server


def send_error(subject, body):
import slycat.web.server

echo = subprocess.Popen(["echo", "\"%s\"" % body], stdout=subprocess.PIPE)
mail = subprocess.Popen(["mail", "-s", "\"%s %s\"" % (slycat.web.server.config["slycat-web-server"]["error-email"]["subject"], subject), slycat.web.server.config["slycat-web-server"]["error-email"]["address"]], stdin=echo.stdout, stdout=subprocess.PIPE)

Expand Down

0 comments on commit 97b87a4

Please sign in to comment.