From 486e25bd79e5ee269dfea1a9fa205843fdb9b330 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Fri, 6 Sep 2019 15:06:22 -0400 Subject: [PATCH] Set a default value for PROCTORING_SETTINGS The proctoring app assumes that this setting exists and so we get an attribute error at runtime if it doesn't. In python 2 this was not an issue but because of the change in how exceptions are handle for getting attributes, it's a problem in python 3. The correct thing to do would be to fix this in the proctoring app so that it checks for the existence of its value before using it but that's a longer cycle to make/deploy that change so doing this as a stopgap to get past it. --- lms/envs/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/envs/test.py b/lms/envs/test.py index 8e14cf87e5..2557ebeb10 100644 --- a/lms/envs/test.py +++ b/lms/envs/test.py @@ -594,3 +594,5 @@ ACCOUNT_MICROFRONTEND_URL = "http://account-mfe/" ########################## limiting dashboard courses ###################### DASHBOARD_COURSE_LIMIT = 250 + +PROCTORING_SETTINGS = {}