diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index f6b5943564..2150f1066c 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -167,8 +167,7 @@ class XQueueCertInterface(object): # check to see whether the student is on the # the embargoed country restricted list if self.restricted.filter(user=student).exists(): - cert_status = status.restricted - cert.status = cert_status + cert.status = status.restricted cert.save() return cert.status