From c54bddd3f3f7c22e7355ec0e1264600ab8bc1897 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Fri, 26 Apr 2019 13:27:59 +0200 Subject: [PATCH] it is pointless to load sample config --- scripts/grt/upload.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/grt/upload.py b/scripts/grt/upload.py index aa978456bf6..1ff18e0982f 100644 --- a/scripts/grt/upload.py +++ b/scripts/grt/upload.py @@ -33,9 +33,8 @@ def main(argv): with open(args.grt_config) as handle: config = yaml.safe_load(handle) except Exception: - logging.warning('Using default GRT configuration') - with open(sample_config) as handle: - config = yaml.safe_load(handle) + logging.error('Could not parse GRT configuration') + sys.exit(1) REPORT_DIR = args.report_directory GRT_URL = config['grt']['url'].rstrip('/') + '/'