Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 48b6318

Browse files
authored
Remove well_known_types.Error and well_known_types.ParseError. (#449)
* Remove well_known_types.Error and well_known_types.ParseError. * Add to CHANGELOG.
1 parent 5566d4d commit 48b6318

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

contrib/opencensus-ext-ocagent/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

33
## Unreleased
4+
- Remove well_known_types.Error and well_known_types.ParseError.
5+
Note this could be a breaking change if you depend on an older
6+
version of protobuf and use ParseError.
47

58
## 0.3.0
69
Released 2019-04-24

contrib/opencensus-ext-ocagent/opencensus/ext/ocagent/utils/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import socket
44

5-
from google.protobuf.internal.well_known_types import ParseError
65
from google.protobuf.timestamp_pb2 import Timestamp
76
from opencensus.common.version import __version__ as opencensus_version
87
from opencensus.proto.agent.common.v1 import common_pb2
@@ -59,6 +58,6 @@ def proto_ts_from_datetime_str(dt):
5958
if (dt is not None):
6059
try:
6160
ts.FromJsonString(dt)
62-
except ParseError:
61+
except ValueError:
6362
pass
6463
return ts

0 commit comments

Comments
 (0)