# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1554458595 -7200
#      Fri Apr 05 12:03:15 2019 +0200
# Node ID 3b724d04ea8cb7c8e96865815df4b2c648090b91
# Parent  cff70e97b0a6a5f08de4e0acf3d0afbdc8d7a864
Ensure find_asv_variants doesn't crash in case the directory doesn't exists

diff --git a/benchmarks/utils.py b/benchmarks/utils.py
--- a/benchmarks/utils.py
+++ b/benchmarks/utils.py
@@ -95,6 +95,10 @@
 
     """
     # Find all benchrepos
+
+    if not os.path.isdir(repo_dir):
+        return ([], [], 0, {}, {}, [])
+
     benchrepos_files = sorted(
         d for d in os.listdir(repo_dir) if d.endswith(REPO_SUFFIX)
     )