distchanges: Add protections around patches under review
[integration/test.git] / tools / distchanges / changes.py
index 7c788029ce3b2da569e51d89ebf3e93c3c75519a..7f604548a8a99292bb3b7ae6043f222b10fb0c67 100644 (file)
@@ -89,6 +89,9 @@ class Changes(object):
             print("%s" % project)
         print("i  grantedOn           lastUpdatd          chang subject")
         print("-- ------------------- ------------------- ----- -----------------------------------------")
+        if gerrits is None:
+            print("gerrit is under review")
+            return
         for i, gerrit in enumerate(gerrits):
             if isinstance(gerrit, dict):
                 print("%02d %19s %19s %5s %s"