From 3f7039769e5c80ece8201e2527e825b4670c4560 Mon Sep 17 00:00:00 2001 From: Nicolas Brichet Date: Tue, 28 Jun 2022 16:14:18 +0200 Subject: [PATCH] Adapt the error message to labextension when versions mismatch between server and extension --- nbgrader/server_extensions/assignment_list/handlers.py | 6 +++--- nbgrader/server_extensions/course_list/handlers.py | 6 +++--- nbgrader/server_extensions/validate_assignment/handlers.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/nbgrader/server_extensions/assignment_list/handlers.py b/nbgrader/server_extensions/assignment_list/handlers.py index a78fed1d1..3cbf73087 100644 --- a/nbgrader/server_extensions/assignment_list/handlers.py +++ b/nbgrader/server_extensions/assignment_list/handlers.py @@ -339,13 +339,13 @@ def get(self): if ui_version != nbgrader_version: msg = dedent( """ - The version of the Assignment List nbextension does not match - the server extension; the nbextension version is {} while the + The version of the Assignment List labextension does not match + the server extension; the labextension version is {} while the server version is {}. This can happen if you have recently upgraded nbgrader, and may cause this extension to not work correctly. To fix the problem, please see the nbgrader installation instructions: - http://nbgrader.readthedocs.io/en/stable/user_guide/installation.html + http://nbgrader.readthedocs.io/en/main/user_guide/installation.html """.format(ui_version, nbgrader_version) ).strip().replace("\n", " ") self.log.error(msg) diff --git a/nbgrader/server_extensions/course_list/handlers.py b/nbgrader/server_extensions/course_list/handlers.py index 81175a808..a06f9bd3b 100644 --- a/nbgrader/server_extensions/course_list/handlers.py +++ b/nbgrader/server_extensions/course_list/handlers.py @@ -199,13 +199,13 @@ def get(self): if ui_version != nbgrader_version: msg = dedent( """ - The version of the Course List nbextension does not match - the server extension; the nbextension version is {} while the + The version of the Course List labextension does not match + the server extension; the labextension version is {} while the server version is {}. This can happen if you have recently upgraded nbgrader, and may cause this extension to not work correctly. To fix the problem, please see the nbgrader installation instructions: - http://nbgrader.readthedocs.io/en/stable/user_guide/installation.html + http://nbgrader.readthedocs.io/en/main/user_guide/installation.html """.format(ui_version, nbgrader_version) ).strip().replace("\n", " ") self.log.error(msg) diff --git a/nbgrader/server_extensions/validate_assignment/handlers.py b/nbgrader/server_extensions/validate_assignment/handlers.py index 880c097af..c48e6aac5 100644 --- a/nbgrader/server_extensions/validate_assignment/handlers.py +++ b/nbgrader/server_extensions/validate_assignment/handlers.py @@ -106,13 +106,13 @@ def get(self): if ui_version != nbgrader_version: msg = dedent( """ - The version of the Validate nbextension does not match - the server extension; the nbextension version is {} while the + The version of the Validate labextension does not match + the server extension; the labextension version is {} while the server version is {}. This can happen if you have recently upgraded nbgrader, and may cause this extension to not work correctly. To fix the problem, please see the nbgrader installation instructions: - http://nbgrader.readthedocs.io/en/stable/user_guide/installation.html + http://nbgrader.readthedocs.io/en/main/user_guide/installation.html """.format(ui_version, nbgrader_version) ).strip().replace("\n", " ") self.log.error(msg)