Commit 421ad02a by PaulWattenberger Committed by GitHub

Merge pull request #20 from edx/pwattenberger/sailthru_fix

Fix problem enrolling course for a user with vars: None
parents 95860c3f 060d483a
...@@ -222,7 +222,8 @@ def _update_unenrolled_list(sailthru_client, email, course_url, unenroll): ...@@ -222,7 +222,8 @@ def _update_unenrolled_list(sailthru_client, email, course_url, unenroll):
response_json = sailthru_response.json response_json = sailthru_response.json
unenroll_list = [] unenroll_list = []
if response_json and "vars" in response_json and "unenrolled" in response_json["vars"]: if response_json and "vars" in response_json and response_json["vars"] \
and "unenrolled" in response_json["vars"]:
unenroll_list = response_json["vars"]["unenrolled"] unenroll_list = response_json["vars"]["unenrolled"]
changed = False changed = False
......
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