From df3130c81422be9587e6f2fe35e0d994e112ac4a Mon Sep 17 00:00:00 2001 From: Sai Sindhur Malleni Date: Wed, 21 Sep 2016 17:21:37 -0400 Subject: [PATCH] Fix version JSON The JSON provided wasn't valid, also changing the exception in lib/Elastic.py to be more general so as to handle cases like this. Change-Id: I2b94783c3af383cdd868835bfe9514baf2bd978b --- lib/Elastic.py | 2 +- metadata/version.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Elastic.py b/lib/Elastic.py index f32861201..8e72d8081 100644 --- a/lib/Elastic.py +++ b/lib/Elastic.py @@ -70,7 +70,7 @@ class Elastic: try: with open(_meta['file']) as jdata: result[_meta['name']] = json.load(jdata) - except (IOError, OSError): + except Exception: self.logger.error( "Error loading Metadata file : {}".format(_meta['file'])) self.logger.error("Please make sure the metadata file exists and" diff --git a/metadata/version.json b/metadata/version.json index c893ac5df..c6f4a513c 100644 --- a/metadata/version.json +++ b/metadata/version.json @@ -1,4 +1,4 @@ { "osp_series": "newton", - "build": "2016-09-01.1", + "build": "2016-09-01.1" }