Make sure Bazelisk + incompatible flags fail gracefully when no incompatible flag is found (#993)
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 2822afa..d215c60 100755
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -2571,6 +2571,8 @@
     incompatible_flags = None
     if test_incompatible_flags:
         incompatible_flags_map = fetch_incompatible_flags()
+        if not incompatible_flags_map:
+            raise BuildkiteException("No incompatible flag issue is found on github for current version of Bazel.")
         info_box_step = print_incompatible_flags_info_box_step(incompatible_flags_map)
         if info_box_step is not None:
             pipeline_steps.append(info_box_step)