codalab / codabench

Codabench is a flexible, easy-to-use and reproducible benchmarking platform. Check our paper at Patterns Cell Press https://hubs.li/Q01fwRWB0
Apache License 2.0
76 stars 28 forks source link

Related to issue #1451: Catch non-existant object error and clear object attribute in DB accordingly #1465

Closed Didayolo closed 5 months ago

Didayolo commented 5 months ago

Original PR: #1454

A brief description of the purpose of the changes contained in this PR.

This piece of code avoids crash when trying to access the size of a file that does not exist anymore in the storage. If an error is caught it then clears the file_size and data_file attribute in the DB.

Issues this PR resolves

Should solve Problem 1 of issue #1451

Simple test

A simple test would be to:

Use case test

Checklist