summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Samek <brian.samek@mongodb.com>2017-04-17 11:24:21 -0400
committerBrian Samek <brian.samek@mongodb.com>2017-04-17 14:41:14 -0400
commitd4c1d45863a14d504404e0b606eb4ef01aacc2a1 (patch)
tree2c9ba9408014e2cf8a10f1790b2c9f80ece52ec8
parent90eedaffecf8d90d86464329a9fd7fe30717de34 (diff)
downloadmongo-d4c1d45863a14d504404e0b606eb4ef01aacc2a1.tar.gz
SERVER-28823 Add missing check that dict is None
-rw-r--r--buildscripts/burn_in_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildscripts/burn_in_tests.py b/buildscripts/burn_in_tests.py
index e3b55209826..e6c676677a8 100644
--- a/buildscripts/burn_in_tests.py
+++ b/buildscripts/burn_in_tests.py
@@ -107,7 +107,7 @@ def find_last_activated_task(revisions, variant, branch_name):
build_prefix = "mongodb_mongo_" + branch_name + "_" + variant.replace('-', '_')
evg_cfg = read_evg_config()
- if "api_server_host" in evg_cfg:
+ if evg_cfg is not None and "api_server_host" in evg_cfg:
api_server = "{url.scheme}://{url.netloc}".format(
url=urlparse.urlparse(evg_cfg["api_server_host"]))
else:
@@ -427,5 +427,6 @@ def main():
sys.exit(0)
+
if __name__ == "__main__":
main()