From 3cae6aa223f6f1dc6541f19cd24a7451ea53ecbd Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 18 Nov 2019 11:32:00 -0500 Subject: [PATCH 1/2] Don't open for binary reading. We want to read the string into json. --- edx_proctoring/apps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_proctoring/apps.py b/edx_proctoring/apps.py index f5d609258e0..255efc6ec64 100644 --- a/edx_proctoring/apps.py +++ b/edx_proctoring/apps.py @@ -28,7 +28,7 @@ def make_worker_config(backends, out='/tmp/workers.json'): try: package = backend.npm_module package_file = os.path.join(settings.NODE_MODULES_ROOT, package, 'package.json') - with open(package_file, 'rb') as package_fp: + with open(package_file, 'r') as package_fp: package_json = json.load(package_fp) main_file = package_json['main'] config[package] = ['babel-polyfill', os.path.join(settings.NODE_MODULES_ROOT, package, main_file)] From 880e1a7fe198207bc1158d6d1c57df83a0407c07 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Mon, 18 Nov 2019 11:33:19 -0500 Subject: [PATCH 2/2] Bump the version. --- edx_proctoring/__init__.py | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edx_proctoring/__init__.py b/edx_proctoring/__init__.py index f000f70b307..aac26eba28f 100644 --- a/edx_proctoring/__init__.py +++ b/edx_proctoring/__init__.py @@ -5,6 +5,6 @@ from __future__ import absolute_import # Be sure to update the version number in edx_proctoring/package.json -__version__ = '2.1.5' +__version__ = '2.1.6' default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name diff --git a/package.json b/package.json index f36660885c6..1ce1c9b257d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@edx/edx-proctoring", "//": "Be sure to update the version number in edx_proctoring/__init__.py", "//": "Note that the version format is slightly different than that of the Python version when using prereleases.", - "version": "2.1.5", + "version": "2.1.6", "main": "edx_proctoring/static/index.js", "repository": { "type": "git",