Skip to content

Commit

Permalink
Cannot free chache space due to sqlite row assignment error (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorkertesz authored Nov 24, 2024
1 parent 1ac174c commit 1b91b2f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/earthkit/regrid/utils/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,13 +373,10 @@ def _delete_entry(self, entry):
except OSError:
pass

if entry["size"] is None:
entry["size"] = 0

path, size = (
entry["path"],
entry["size"],
)
path = entry["path"]
size = entry["size"]
if size is None:
size = 0

# path, size, owner, args = (
# entry["path"],
Expand Down

0 comments on commit 1b91b2f

Please sign in to comment.