Skip to content

Commit ec36ab3

Browse files
committed
chore: Remove unreached error handling code
1 parent 3f6f6f9 commit ec36ab3

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/serialization/test_identify.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import unittest
2-
from urllib.error import HTTPError
32

43
import pystac
54
from pystac.cache import CollectionCache
@@ -24,12 +23,9 @@ def test_identify(self) -> None:
2423
path = example.path
2524
d = pystac.StacIO.default().read_json(path)
2625
if identify_stac_object_type(d) == pystac.STACObjectType.ITEM:
27-
try:
28-
merge_common_properties(
29-
d, json_href=path, collection_cache=collection_cache
30-
)
31-
except HTTPError:
32-
pass
26+
merge_common_properties(
27+
d, json_href=path, collection_cache=collection_cache
28+
)
3329

3430
actual = identify_stac_object(d)
3531
# Explicitly cover __repr__ functions in tests

0 commit comments

Comments
 (0)