forked from nathanhi/pyfatfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nathanhi#34: Gracefully handle invalid file timestamps
In case an invalid timestamp is encountered, an exception is thrown instead of gracefully handling the invalid timestamp. This particular malformed time was produced by a Hach TL2350 turbidity meter, producing a seconds value of 60 at the end of a minute (e.g., 0x1E). Date deserialization already properly handles this with a fallback date of 1980-01-01; similarly fall back to 00:00:00 in case of invalid timestamps.
- Loading branch information
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters