diff --git a/api/endpoints/environment.py b/api/endpoints/environment.py index e77d1fa..1be7f8e 100755 --- a/api/endpoints/environment.py +++ b/api/endpoints/environment.py @@ -59,14 +59,16 @@ def get(self, ade_host): def get_config(ade_host): + print("graceal1 in get_config of environment.py API") try: ROOT = os.path.dirname(os.path.abspath(__file__)) - with open(os.path.join(ROOT, "environments.json")) as f: + with open(os.path.join(ROOT, "environments1.json")) as f: data = json.load(f) except FileNotFoundError: + print("graceal1 file not found error so throwing exception") msg = "environments.json file could not be found" logging.exception(msg) - raise Exception(msg) + raise FileNotFoundError(msg) base_url = "{0.netloc}".format(urlsplit(urllib.parse.unquote(ade_host)))