Handle a missing, empty or invalid data file #9

Closed
opened 2026-10-14 15:18:13 +02:00 by Tirsvad · 0 comments
Owner

Catch FileNotFoundError and json.JSONDecodeError with try, except, else and finally so a first save creates the file and the entry fields are cleared in every case (challenge 1).

Phase: MIL-002

Catch `FileNotFoundError` and `json.JSONDecodeError` with try, except, else and finally so a first save creates the file and the entry fields are cleared in every case (challenge 1). Phase: MIL-002
Tirsvad added this to the Password Manager Features milestone 2026-10-14 15:18:13 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/030-password-manager#9