File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
mapswipe_workers/mapswipe_workers/utils Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -224,14 +224,9 @@ def get_image_metadata(
224224 aoi_polygon = geojson_to_polygon (aoi_geojson )
225225 downloaded_metadata = coordinate_download (aoi_polygon , level , kwargs )
226226 if downloaded_metadata .empty or downloaded_metadata .isna ().all ().all ():
227- raise ValueError ("No Mapillary Features in the AoI." )
228-
229- if (
230- downloaded_metadata is None
231- or downloaded_metadata .empty
232- or downloaded_metadata .isna ().all ().all ()
233- ):
234- raise ValueError ("No Mapillary Features in the AoI match the filter criteria." )
227+ raise ValueError (
228+ "No Mapillary Features in the AoI or no Features match the filter criteria."
229+ )
235230
236231 if sampling_threshold is not None :
237232 downloaded_metadata = spatial_sampling (downloaded_metadata , sampling_threshold )
You can’t perform that action at this time.
0 commit comments