Skip to content

Release feedback fails after #1774 #1897

Open
@iyanmv

Description

@iyanmv

I think because of #1774, trying to re-release feedback can fail if submission was done prior to the update because the current code does not take into account that the file submission_secret.txt might not exist.

with open(os.path.join(feedback_dir, "submission_secret.txt")) as fh:
submission_secret = fh.read()

Operating system

nbgrader --version

Python version 3.11.8 | packaged by conda-forge | (main, Feb 16 2024, 20:53:32) [GCC 12.3.0]
nbgrader version 0.9.3

jupyterhub --version (if used with JupyterHub)

4.0.2

jupyter notebook --version

7.2.1

Expected behavior

Updating nbgrader should not break releasing feedback of older submissions.

Actual behavior

If submission_secret.txt does not exist in the feedback folder, release feedback will fail.

Steps to reproduce the behavior

  1. Take an old submission (from before updating to current version)
  2. Recreate feedback (this works)
  3. Release feedback (this fails)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions