Fix more lint violations, remove prints

This commit is contained in:
bmedx
2017-03-03 10:32:22 -05:00
parent 327aeb18aa
commit d5eb9c0b21
2 changed files with 1 additions and 9 deletions

View File

@@ -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")

View File

@@ -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]