From b35dbd163bdff7550b28a6ffa8980618da2f4da2 Mon Sep 17 00:00:00 2001 From: Bryce York Date: Sun, 2 Jun 2024 16:59:06 -0400 Subject: [PATCH] fix: add fallback workspace name --- ossai/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ossai/utils.py b/ossai/utils.py index 1f0248f..92ca7dc 100644 --- a/ossai/utils.py +++ b/ossai/utils.py @@ -124,10 +124,10 @@ def get_workspace_name(client: WebClient): return response["team"]["name"] else: print(f"Error retrieving workspace name: {response['error']}") - return "" + return os.getenv("WORKSPACE_NAME_FALLBACK", "") except SlackApiError as e: print(f"Error retrieving workspace name: {e.response['error']}") - return "" # None + return os.getenv("WORKSPACE_NAME_FALLBACK", "") # None def main():