File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
+ - Fix to logic determining if ` context.matched ` in ` ItemSearch.matched ` response [ #646 ] ( https://github.com/stac-utils/pystac-client/pull/646 )
11
+
10
12
### Fixed
11
13
12
14
- Recursion error in ` get_items ` [ #608 ] ( https://github.com/stac-utils/pystac-client/pull/608 )
Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ def matched(self) -> Optional[int]:
671
671
resp = self ._stac_io .read_json (self .url , method = self .method , parameters = params )
672
672
found = None
673
673
if "context" in resp :
674
- found = resp ["context" ][ "matched" ]
674
+ found = resp ["context" ]. get ( "matched" , None )
675
675
elif "numberMatched" in resp :
676
676
found = resp ["numberMatched" ]
677
677
if found is None :
You can’t perform that action at this time.
0 commit comments