Skip to content

Commit

Permalink
Merge pull request #52 from ohadmata/fix-oserror-while-converting-uni…
Browse files Browse the repository at this point in the history
…xtimestamp

catch oserror while converting unixtimestamp
  • Loading branch information
ohadmata authored Jan 21, 2024
2 parents 8563ed2 + a031f2b commit 150d915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shmessy/types/unix_timestamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def validate(self, data: ndarray) -> Optional[InferredField]:
return InferredField(
inferred_type=self.name, inferred_pattern=selected_resolution
)
except ValueError as e:
except (ValueError, OSError) as e:
logger.debug(f"Cannot cast the given data to {self.name}: {e}")
return None

Expand Down

0 comments on commit 150d915

Please sign in to comment.