diff --git a/scripts/retrigger_pipeline_jobs.py b/scripts/retrigger_pipeline_jobs.py
index c55fa86e4ed4f11214a74f8b04203f2944cf18d1..bb90964da2ec108f6c7d98d341687487d964e6ee 100755
--- a/scripts/retrigger_pipeline_jobs.py
+++ b/scripts/retrigger_pipeline_jobs.py
@@ -20,7 +20,10 @@ def retrigger_pipeline_jobs(
     # Recurse to child pipelines
     if include_children:
         for bridge in pipeline.bridges.list():
-            if bridge.downstream_pipeline["project_id"] == project.id:
+            if (
+                bridge is not None
+                and bridge.downstream_pipeline["project_id"] == project.id
+            ):
                 child_pipeline = project.pipelines.get(
                     bridge.downstream_pipeline["id"],
                     retry_transient_errors=True,