File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 6
6
from pystac .errors import (
7
7
STACError ,
8
8
STACTypeError ,
9
+ DuplicateObjectKeyError ,
9
10
ExtensionAlreadyExistsError ,
10
11
ExtensionNotImplemented ,
11
12
ExtensionTypeError ,
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ class STACTypeError(Exception):
19
19
pass
20
20
21
21
22
+ class DuplicateObjectKeyError (Exception ):
23
+ """Raised when deserializing a JSON object containing a duplicate key."""
24
+
25
+ pass
26
+
27
+
22
28
class ExtensionTypeError (Exception ):
23
29
"""An ExtensionTypeError is raised when an extension is used against
24
30
an object that the extension does not apply to
Original file line number Diff line number Diff line change @@ -293,10 +293,6 @@ def write_text_to_href(
293
293
f .write (txt )
294
294
295
295
296
- class DuplicateObjectKeyError (Exception ):
297
- pass
298
-
299
-
300
296
class DuplicateKeyReportingMixin (StacIO ):
301
297
"""A mixin for StacIO implementations that will report
302
298
on duplicate keys in the JSON being read in.
You can’t perform that action at this time.
0 commit comments