Commit d5eb9c0b by bmedx

Fix more lint violations, remove prints

parent 327aeb18
......@@ -46,5 +46,5 @@ def user_task_stopped_handler(sender, **kwargs): # pylint: disable=unused-argum
try:
# Need to str state_text here because it is a proxy object and won't serialize correctly
send_task_complete_email.delay(status.name.lower(), str(status.state_text), status.user.email, detail_url)
except Exception as e: # pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
logging.exception("Unable to queue send_task_complete_email")
......@@ -149,10 +149,6 @@ class TestUserTaskStopped(APITestCase):
reverse('usertaskstatus-detail', args=[self.status.uuid])
]
for m in mail.outbox:
print (m.subject)
print (m.body)
self.assertEqual(len(mail.outbox), 1)
msg = mail.outbox[0]
......@@ -185,10 +181,6 @@ class TestUserTaskStopped(APITestCase):
"Sign in to view the details of your task or download any files created."
]
for m in mail.outbox:
print (m.subject)
print (m.body)
self.assertEqual(len(mail.outbox), 1)
msg = mail.outbox[0]
......
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