diff --git a/kuksa-client/kuksa_client/grpc/__init__.py b/kuksa-client/kuksa_client/grpc/__init__.py index 7799592..f2f569f 100644 --- a/kuksa-client/kuksa_client/grpc/__init__.py +++ b/kuksa-client/kuksa_client/grpc/__init__.py @@ -331,7 +331,7 @@ def from_message(cls, message: types_pb2.Datapoint): timestamp = message.timestamp.ToDatetime( tzinfo=datetime.timezone.utc, ) - except OverflowError: + except ValueError: logger.error("Timestamp %d out of accepted range, value ignored!", message.timestamp.seconds)