HTTP Response not found for feature-info

This commit is contained in:
phil 2024-01-05 01:49:28 +05:30
parent ec71b6ed15
commit 0a480b0e02

View file

@ -125,6 +125,8 @@ async def get_projects(
async def get_feature_info(
store: str, id: str,
) -> FeatureInfo:
if store not in registry.stores.index:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND)
store_record = registry.stores.loc[store]
model = store_record.model