Fix more lint violations, remove prints
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user