Skip to content

Commit

Permalink
fix: add fallback workspace name
Browse files Browse the repository at this point in the history
  • Loading branch information
meetbryce committed Jun 2, 2024
1 parent 7224714 commit b35dbd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ossai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit b35dbd1

Please sign in to comment.