Skip to content

Bug: update_readme fails due to issue with saving README metadata as JSON file #240

@zoidy

Description

@zoidy

Describe the bug
When running update_readme for item in the 2.UnderReview returns an error because the software is trying to find the deposit in the folder 1.ToDo instead of 2.UnderReview attempting to write a file in the 1.Todo instead of 2.UnderReview.

Reproduction Steps
Run update_readme XXXXXXXX. If you move the folder for XXXXXXXX manually to 1.ToDo and run the update_readme, it works. Moving it back to 2.UnderReview using move_next and running update_readme again causes the error to happen again.

Outputted Messages

FileNotFoundError: [Errno 2] No such file or directory: '/mnt/block1_sfo2/curation/1.ToDo/Joseph_Iuliano_14849762/v01/METADATA/deposit_agreement_original_14849762.json'

Version information

  • LD_Cool-P version: 1.1.5

Expected behavior
The readme is updated appropriately.

Additional context
Perhaps it has something to do with the fact that this deposit was retrieved using get_metadata?

Implemented in: TBD

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingp1Issues affecting production, multiple users

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions