Skip to content

Commit

Permalink
catch oserror while converting unixtimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
ohadmata committed Jan 21, 2024
1 parent 8563ed2 commit a031f2b
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 a031f2b

Please sign in to comment.