Skip to content

🪲 BUG-#221: Fix StorageFile crash on corrupted task files#230

Merged
FernandoCelmer merged 3 commits intodevelopfrom
feature/221
Apr 9, 2026
Merged

🪲 BUG-#221: Fix StorageFile crash on corrupted task files#230
FernandoCelmer merged 3 commits intodevelopfrom
feature/221

Conversation

@FernandoCelmer
Copy link
Copy Markdown
Member

Description

Fix StorageFile.post() and StorageFile.get() crashing with AttributeError when task files contain non-JSON content (corrupted, interrupted writes, manual edits).

Issue: 📌 ISSUE-#221

Changes

  • Validate read_file return type in both post() and get() — only use result if it's a list
  • Corrupted files are silently treated as empty (overwritten on next write)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@FernandoCelmer FernandoCelmer merged commit e494a0f into develop Apr 9, 2026
10 checks passed
@FernandoCelmer FernandoCelmer deleted the feature/221 branch April 9, 2026 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant