@@ -57,7 +57,7 @@ def all_collections(self, **kwargs) -> Collections:
57
57
index = "stac_collections" , doc_type = "_doc" , query = {"match_all" : {}}
58
58
)
59
59
except elasticsearch .exceptions .NotFoundError :
60
- raise NotFoundError (f "No collections exist in the database yet" )
60
+ raise NotFoundError ("No collections exist in the database yet" )
61
61
serialized_collections = [
62
62
self .collection_serializer .db_to_stac (
63
63
collection ["_source" ], base_url = base_url
@@ -111,7 +111,7 @@ def item_collection(
111
111
try :
112
112
count = search .count ()
113
113
except elasticsearch .exceptions .NotFoundError :
114
- raise NotFoundError (f "No items exist for this collection yet" )
114
+ raise NotFoundError ("No items exist for this collection yet" )
115
115
# search = search.sort({"id.keyword" : {"order" : "asc"}})
116
116
search = search .query ()[0 :limit ]
117
117
collection_children = search .execute ().to_dict ()
@@ -142,7 +142,9 @@ def get_item(self, item_id: str, collection_id: str, **kwargs) -> Item:
142
142
try :
143
143
item = self .client .get (index = "stac_items" , id = item_id )
144
144
except elasticsearch .exceptions .NotFoundError :
145
- raise NotFoundError (f"Item { item_id } does not exist in Collection { collection_id } " )
145
+ raise NotFoundError (
146
+ f"Item { item_id } does not exist in Collection { collection_id } "
147
+ )
146
148
return self .item_serializer .db_to_stac (item ["_source" ], base_url )
147
149
148
150
def _return_date (self , datetime ):
0 commit comments