Skip to content

Commit 7899bfb

Browse files
committed
refactor: use logger.info instead of logger.exception for missing values
1 parent 538c763 commit 7899bfb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

mapswipe_workers/mapswipe_workers/utils/process_mapillary.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,31 +198,27 @@ def filter_results(
198198
df = results_df.copy()
199199
if creator_id is not None:
200200
if df["creator_id"].isna().all():
201-
logger.exception(
202-
"No Mapillary Feature in the AoI has a 'creator_id' value."
203-
)
201+
logger.info("No Mapillary Feature in the AoI has a 'creator_id' value.")
204202
return None
205203
df = df[df["creator_id"] == creator_id]
206204

207205
if is_pano is not None:
208206
if df["is_pano"].isna().all():
209-
logger.exception("No Mapillary Feature in the AoI has a 'is_pano' value.")
207+
logger.info("No Mapillary Feature in the AoI has a 'is_pano' value.")
210208
return None
211209
df = df[df["is_pano"] == is_pano]
212210

213211
if organization_id is not None:
214212
if df["organization_id"].isna().all():
215-
logger.exception(
213+
logger.info(
216214
"No Mapillary Feature in the AoI has an 'organization_id' value."
217215
)
218216
return None
219217
df = df[df["organization_id"] == organization_id]
220218

221219
if start_time is not None:
222220
if df["captured_at"].isna().all():
223-
logger.exception(
224-
"No Mapillary Feature in the AoI has a 'captured_at' value."
225-
)
221+
logger.info("No Mapillary Feature in the AoI has a 'captured_at' value.")
226222
return None
227223
df = filter_by_timerange(df, start_time, end_time)
228224

0 commit comments

Comments
 (0)