corrected backend-check

This commit is contained in:
RafTim 2013-11-03 05:21:12 +01:00
commit a977ea2c07
3 changed files with 5 additions and 6 deletions

View file

@ -30,7 +30,7 @@ class TaskList(object):
for taskInfo in taskInfos:
task = self.find_task_by_name(taskInfo["class"])
if task:
task.execute(taskInfo["args"])
task.execute(msg, taskInfo["args"])

View file

@ -54,7 +54,6 @@ class MailTask(Task):
def execute(self, msg, taskArgs):
if "recipient" not in taskArgs:
raise "could not execute Mail Task! No recipient given!"
message = MIMEText(msg)
message['Subject'] = msg
now = datetime.datetime.now()