Skip to content

Commit

Permalink
Adapt the error message to labextension when versions mismatch betwee…
Browse files Browse the repository at this point in the history
…n server and extension
  • Loading branch information
brichet committed Jun 29, 2022
1 parent 0e95ad2 commit 3f70397
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions nbgrader/server_extensions/assignment_list/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions nbgrader/server_extensions/course_list/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions nbgrader/server_extensions/validate_assignment/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f70397

Please sign in to comment.