Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
aa7cc2b7
Commit
aa7cc2b7
authored
Nov 30, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/pylint: disable=E0702/pylint: disable=raising-bad-type/
parent
e8b336ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lms/djangoapps/bulk_email/tasks.py
+2
-2
No files found.
lms/djangoapps/bulk_email/tasks.py
View file @
aa7cc2b7
...
...
@@ -336,11 +336,11 @@ def send_course_email(entry_id, email_id, to_list, global_email_context, subtask
# was encountered has already been updated before the retry call was made,
# so we only log here.
log
.
warning
(
"Send-email task
%
s for email
%
s: being retried"
,
current_task_id
,
email_id
)
raise
send_exception
# pylint: disable=
E0702
raise
send_exception
# pylint: disable=
raising-bad-type
else
:
log
.
error
(
"Send-email task
%
s for email
%
s: failed:
%
s"
,
current_task_id
,
email_id
,
send_exception
)
update_subtask_status
(
entry_id
,
current_task_id
,
new_subtask_status
)
raise
send_exception
# pylint: disable=
E0702
raise
send_exception
# pylint: disable=
raising-bad-type
# return status in a form that can be serialized by Celery into JSON:
log
.
info
(
"Send-email task
%
s for email
%
s: returning status
%
s"
,
current_task_id
,
email_id
,
new_subtask_status
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment