Skip to content

Commit 1e8219f

Browse files
committed
Fix more dict issue
1 parent 632638c commit 1e8219f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metadata-ingestion/src/datahub/ingestion/source/gc/dataprocess_cleanup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ def remove_old_dpis(
331331
continue
332332

333333
if (
334-
"created" not in dpi
335-
or "time" not in dpi["created"]
334+
not dpi.get("created")
335+
or not dpi["created"].get("time")
336336
or dpi["created"]["time"] < retention_time * 1000
337337
):
338338
future = executor.submit(

0 commit comments

Comments
 (0)