Skip to content

Commit

Permalink
added print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
grallewellyn committed Dec 5, 2024
1 parent 924b0c7 commit 57c60f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/endpoints/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Expand Down

0 comments on commit 57c60f9

Please sign in to comment.