From 9247b158f76b63bc45582b79556c422f2958f9cc Mon Sep 17 00:00:00 2001 From: sylvain-morin Date: Wed, 3 Jul 2024 10:08:23 +0200 Subject: [PATCH] Add build info --- lib/inat_vision_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/inat_vision_api.py b/lib/inat_vision_api.py index 8ec058f..a590484 100644 --- a/lib/inat_vision_api.py +++ b/lib/inat_vision_api.py @@ -80,10 +80,10 @@ def h3_04_bounds_route(self): def build_info_route(self): return { - "git_branch": os.environ["GIT_BRANCH"], - "git_commit": os.environ["GIT_COMMIT"], - "image_tag": os.environ["IMAGE_TAG"], - "build_date": os.environ["BUILD_DATE"] + "git_branch": os.getenv("GIT_BRANCH", ""), + "git_commit": os.getenv("GIT_COMMIT", ""), + "image_tag": os.getenv("IMAGE_TAG", ""), + "build_date": os.getenv("BUILD_DATE", "") } def index_route(self):