From 8b320d69745a92aa64696c5f2617bd76dff88cb3 Mon Sep 17 00:00:00 2001 From: Jansen Kantor Date: Thu, 23 May 2024 15:23:53 -0400 Subject: [PATCH] fix: use get to avoid key error (#2213) * fix: use get to avoid key error * chore: version --- openassessment/__init__.py | 2 +- openassessment/xblock/utils/validation.py | 2 +- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openassessment/__init__.py b/openassessment/__init__.py index 945bb7f9fd..3ccd3f9872 100644 --- a/openassessment/__init__.py +++ b/openassessment/__init__.py @@ -2,4 +2,4 @@ Initialization Information for Open Assessment Module """ -__version__ = '6.11.0' +__version__ = '6.11.1' diff --git a/openassessment/xblock/utils/validation.py b/openassessment/xblock/utils/validation.py index 8ec35c76e2..88313fd14c 100644 --- a/openassessment/xblock/utils/validation.py +++ b/openassessment/xblock/utils/validation.py @@ -168,7 +168,7 @@ def validate_assessments(assessments, current_assessments, is_released, _): if names != current_names: return False, _("The assessment type cannot be changed after the problem has been released.") - if settings.FEATURES["ENABLE_ORA_PEER_CONFIGURABLE_GRADING"]: + if settings.FEATURES.get("ENABLE_ORA_PEER_CONFIGURABLE_GRADING"): grading_strategies = [assessment.get('grading_strategy') for assessment in assessments] current_grading_strategies = [assessment.get('grading_strategy') for assessment in current_assessments] if grading_strategies != current_grading_strategies: diff --git a/package-lock.json b/package-lock.json index 594c300624..e37afcac20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "edx-ora2", - "version": "6.11.0", + "version": "6.11.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index cfaf412482..772cc8657b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "edx-ora2", - "version": "6.11.0", + "version": "6.11.1", "repository": "https://github.com/openedx/edx-ora2.git", "dependencies": { "@edx/frontend-build": "8.0.6",