Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #147 #157

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Fix for #147 #157

merged 1 commit into from
Apr 8, 2021

Conversation

fbradyirl
Copy link
Contributor

data["organization"] is never initialised so it is not possible to use the be_geo_id or caller features.

Trying to set an attribute in the user agent, but I get a key error.

        self.teams = WebexTeamsAPI(access_token=access_token,
                                   be_geo_id= f"{str(uuid.uuid4())}".upper())
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/api/__init__.py", line 182, in __init__
    self._session = RestSession(
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 230, in __init__
    "User-Agent": user_agent(be_geo_id=be_geo_id, caller=caller),
  File "/Users/fibrady/projects/core/venv/lib/python3.9/site-packages/webexteamssdk/restsession.py", line 155, in user_agent
    data["organization"]["be_geo_id"] = be_geo_id
KeyError: 'organization'

@sQu4rks sQu4rks merged commit 1bce6e7 into WebexCommunity:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants