Skip to content

Commit

Permalink
fix: use get to avoid key error (#2213)
Browse files Browse the repository at this point in the history
* fix: use get to avoid key error

* chore: version
  • Loading branch information
jansenk authored May 23, 2024
1 parent 9359c44 commit 8b320d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openassessment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Initialization Information for Open Assessment Module
"""

__version__ = '6.11.0'
__version__ = '6.11.1'
2 changes: 1 addition & 1 deletion openassessment/xblock/utils/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 8b320d6

Please sign in to comment.